Table of Contents

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

requests IBackChannelAuthenticationRequestStore

Where backchannel requests are kept, and removed from once redeemed, refused or expired.

profile IProfileService

Says whether the user is still active.

throttling IBackchannelAuthenticationThrottlingService

Says whether a pending request is being polled too fast.

time TimeProvider

The 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

context BackchannelAuthenticationRequestIdValidationContext

The presented id and the token request; the answer is written to its Result.

ct CancellationToken

Cancels the store lookups and the profile service call.

Returns

Task

A task that completes once Result is set.

Exceptions

ArgumentNullException

context is null.