Class RedbRouteOpenIddictServerHandler
Transport-agnostic entry point for processing OAuth/OIDC requests
through the OpenIddict Server pipeline from an .
Usage in a route definition:
From("direct-vm://identity-token")
.Process(async (exchange, ct) =>
{
var handler = context.GetService<RedbRouteOpenIddictServerHandler>();
await handler.ProcessAsync(exchange, OpenIddictServerEndpointType.Token, ct);
});
Lifetime (A2): registered as Singleton. Per-exchange Scoped dependencies
(, ) are
resolved through when available — redb.Route opens
a fresh per exchange and exposes it on the exchange — falling
back to a private scope created via . This avoids the
captive-Scoped-into-Singleton trap.
public sealed class RedbRouteOpenIddictServerHandler
Inheritance
Methods
ProcessAsync(IExchange, OpenIddictServerEndpointType, CancellationToken)
Processes an OAuth/OIDC request through the OpenIddict Server pipeline.
public Task ProcessAsync(IExchange exchange, OpenIddictServerEndpointType endpointType, CancellationToken cancellationToken = default)