Class SeedBackchannelClientHostedService
W6-0 — sister of . Ensures the
client_credentials backchannel service-account OpenIddict application
exists on host startup. The Web BFF uses this account to publish
(POST /api/v1/identity/revoked-sids) and poll
(GET /api/v1/identity/revoked-sids/since) the cluster-wide revoked-sids
list for backchannel logout.
Behaviour:
No-op when is false.No-op when the application already exists (idempotent across restarts).Logs and skips when is empty —
client_credentials requires a confidential client (RFC 6749 §4.4).Never throws — operators can always provision the client manually via the
management API.
public sealed class SeedBackchannelClientHostedService : IRouteLifecycleListener
Inheritance
Implements
Methods
OnContextStarting(IRouteContext, CancellationToken)
Fired before the context starts compiling and starting routes.
public Task OnContextStarting(IRouteContext context, CancellationToken cancellationToken)