RequestedExpiryValidator Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation
RequestedExpiryValidator Class
Validates the requested expiry time for a backchannel authentication request. Ensures that the requested expiry is within the allowed range and assigns a valid expiry time to the context.
public class RequestedExpiryValidator : Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation.IBackChannelAuthenticationContextValidator
Inheritance System.Object → RequestedExpiryValidator
Implements IBackChannelAuthenticationContextValidator
Constructors
RequestedExpiryValidator(IOptionsMonitor<OidcOptions>) Constructor
Validates the requested expiry time for a backchannel authentication request. Ensures that the requested expiry is within the allowed range and assigns a valid expiry time to the context.
public RequestedExpiryValidator(Microsoft.Extensions.Options.IOptionsMonitor<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
Parameters
options Microsoft.Extensions.Options.IOptionsMonitor<OidcOptions>
The options containing the default and maximum expiry settings for backchannel authentication.
Methods
RequestedExpiryValidator.ValidateAsync(BackChannelAuthenticationValidationContext) Method
Asynchronously validates the expiry time for the backchannel authentication request. Ensures that the requested expiry is within the allowed range and assigns an appropriate expiry to the context.
public System.Threading.Tasks.Task<Abblix.Oidc.Server.Common.OidcError?> ValidateAsync(Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation.BackChannelAuthenticationValidationContext context);
Parameters
context BackChannelAuthenticationValidationContext
The validation context containing the backchannel authentication request and its parameters.
Implements ValidateAsync(BackChannelAuthenticationValidationContext)
Returns
System.Threading.Tasks.Task<OidcError>
A task representing the asynchronous operation, returning an error if validation fails,
or null if validation succeeds.