Class BackchannelAuthenticationRequestIdValidator
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.Core.dll
Duende's default auth_req_id validator.
public class BackchannelAuthenticationRequestIdValidator : IBackchannelAuthenticationRequestIdValidator
- Inheritance
-
BackchannelAuthenticationRequestIdValidator
- Implements
- Inherited Members
Constructors
BackchannelAuthenticationRequestIdValidator(IBackChannelAuthenticationRequestStore, IProfileService, IBackchannelAuthenticationThrottlingService, TimeProvider)
Creates the validator.
public BackchannelAuthenticationRequestIdValidator(IBackChannelAuthenticationRequestStore requests, IProfileService profile, IBackchannelAuthenticationThrottlingService throttling, TimeProvider time)
Parameters
requestsIBackChannelAuthenticationRequestStoreWhere backchannel requests are kept, and removed from once redeemed, refused or expired.
profileIProfileServiceSays whether the user is still active.
throttlingIBackchannelAuthenticationThrottlingServiceSays whether a pending request is being polled too fast.
timeTimeProviderThe clock a request's expiry is judged against.
Methods
ValidateAsync(BackchannelAuthenticationRequestIdValidationContext, CancellationToken)
Validates the context's auth_req_id and sets its Result.
public virtual Task ValidateAsync(BackchannelAuthenticationRequestIdValidationContext context, CancellationToken ct)
Parameters
contextBackchannelAuthenticationRequestIdValidationContextThe presented id and the token request; the answer is written to its
Result.ctCancellationTokenCancels the store lookups and the profile service call.
Returns
Exceptions
- ArgumentNullException
contextisnull.