Saltar al contenido
Esta página aún no está traducida.

UserIdentityValidator Class

Validates the user's identity in a backchannel authentication request, ensuring that valid identity hints (e.g., login hints, tokens) are provided and correctly processed.

C#
public class UserIdentityValidator : Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation.IBackChannelAuthenticationContextValidator

Inheritance System.Object → UserIdentityValidator

Implements IBackChannelAuthenticationContextValidator

Constructors

UserIdentityValidator(IIdTokenHintParser, IClientJwtValidator) Constructor

Validates the user's identity in a backchannel authentication request, ensuring that valid identity hints (e.g., login hints, tokens) are provided and correctly processed.

C#
public UserIdentityValidator(Abblix.Oidc.Server.Features.Tokens.Validation.IIdTokenHintParser hintParser, Abblix.Oidc.Server.Features.Tokens.Validation.IClientJwtValidator clientJwtValidator);

Parameters

hintParser IIdTokenHintParser

Decides whether an id_token_hint is an ID token this server issued.

clientJwtValidator IClientJwtValidator

Validator for JWTs issued by clients.

Methods

UserIdentityValidator.ValidateAsync(BackChannelAuthenticationValidationContext) Method

Validates the user's identity based on the provided identity hints, such as login hint, login hint token, or ID token hint. It ensures that only one identity hint is present and attempts to process the hint to confirm the user's identity.

C#
public System.Threading.Tasks.Task<Abblix.Oidc.Server.Common.OidcError?> ValidateAsync(Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation.BackChannelAuthenticationValidationContext context);

Parameters

context BackChannelAuthenticationValidationContext

Contains the backchannel authentication request and client information.

Implements ValidateAsync(BackChannelAuthenticationValidationContext)

Returns

System.Threading.Tasks.Task<OidcError>
Returns a OidcError if the identity validation fails, or null if the identity is successfully validated.