Skip to main content

AuthenticationCompletionRouter Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.BackChannelAuthentication.AuthenticationNotifiers

AuthenticationCompletionRouter Class

Routes CIBA authentication completion to the appropriate mode-specific handler (PollModeCompletionHandler, PingModeCompletionHandler, or PushModeCompletionHandler) based on the client's configured backchannel_token_delivery_mode.

public class AuthenticationCompletionRouter : Abblix.Oidc.Server.Features.BackChannelAuthentication.Interfaces.IAuthenticationCompletionHandler

Inheritance System.Object → AuthenticationCompletionRouter

Implements IAuthenticationCompletionHandler

Constructors

AuthenticationCompletionRouter(ILogger<AuthenticationCompletionRouter>, IClientInfoProvider, IServiceProvider) Constructor

Routes CIBA authentication completion to the appropriate mode-specific handler (PollModeCompletionHandler, PingModeCompletionHandler, or PushModeCompletionHandler) based on the client's configured backchannel_token_delivery_mode.

public AuthenticationCompletionRouter(Microsoft.Extensions.Logging.ILogger<Abblix.Oidc.Server.Features.BackChannelAuthentication.AuthenticationNotifiers.AuthenticationCompletionRouter> logger, Abblix.Oidc.Server.Features.ClientInformation.IClientInfoProvider clientInfoProvider, System.IServiceProvider serviceProvider);

Parameters

logger Microsoft.Extensions.Logging.ILogger<AuthenticationCompletionRouter>

Logger for tracking completion events.

clientInfoProvider IClientInfoProvider

Provider for retrieving client information.

serviceProvider System.IServiceProvider

Service provider for resolving mode-specific handlers using keyed services.

Properties

AuthenticationCompletionRouter.TokenDeliveryModesSupported Property

Gets the list of supported token delivery modes by checking which handlers are registered in DI. This ensures the discovery document accurately reflects available functionality.

public System.Collections.Generic.IEnumerable<string> TokenDeliveryModesSupported { get; }

Implements TokenDeliveryModesSupported

Property Value

System.Collections.Generic.IEnumerable<System.String>

Methods

AuthenticationCompletionRouter.CompleteAsync(string, BackChannelAuthenticationRequest, TimeSpan) Method

Completes the authentication process and handles token delivery based on the client's configured delivery mode. Automatically selects the appropriate handler implementation.

public System.Threading.Tasks.Task CompleteAsync(string authenticationRequestId, Abblix.Oidc.Server.Features.BackChannelAuthentication.BackChannelAuthenticationRequest request, System.TimeSpan expiresIn);

Parameters

authenticationRequestId System.String

The auth_req_id to complete.

request BackChannelAuthenticationRequest

The authentication request to mark as completed.

expiresIn System.TimeSpan

How long the authenticated request remains valid for token retrieval.

Implements CompleteAsync(string, BackChannelAuthenticationRequest, TimeSpan)

Returns

System.Threading.Tasks.Task