Перейти к содержимому
Abblix
Эта страница ещё не переведена.

IAuthenticationCompletionHandler Interface

Handles CIBA authentication completion by routing to the appropriate delivery mode handler (poll, ping, or push) based on the client's configured backchannel_token_delivery_mode.

C#
public interface IAuthenticationCompletionHandler

Derived
AuthenticationCompletionRouter

Properties

IAuthenticationCompletionHandler.TokenDeliveryModesSupported Property

Token delivery modes (poll, ping, push) for which a handler is registered with the DI container. Used to populate the discovery document's backchannel_token_delivery_modes_supported field so it reflects only modes the host actually supports.

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

Property Value

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

Methods

IAuthenticationCompletionHandler.CompleteAsync(string, BackChannelAuthenticationRequest, TimeSpan) Method

Completes the authentication process and handles token delivery according to the client's configured delivery mode.

C#
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 identifying the authentication request.

request BackChannelAuthenticationRequest

The authentication request with Authenticated status and authorized grant.

expiresIn System.TimeSpan

How long the authenticated request remains valid for token retrieval.

Returns

System.Threading.Tasks.Task
A task representing the asynchronous completion operation.

Remarks

This method automatically:

  • Retrieves client information to determine the delivery mode
  • Selects the appropriate handler (PollModeCompletionHandler, PingModeCompletionHandler, or PushModeCompletionHandler)
  • Delegates to the mode-specific implementation for token delivery