Class DigestAuthenticationHandler
- Namespace
- Cuemon.AspNetCore.Authentication.Digest
- Assembly
- Cuemon.AspNetCore.Authentication.dll
Provides a HTTP Digest Access Authentication implementation of AuthenticationHandler<TOptions> for ASP.NET Core.
public class DigestAuthenticationHandler : AuthenticationHandler<DigestAuthenticationOptions>, IAuthenticationHandler
- Inheritance
-
DigestAuthenticationHandler
- Implements
- Inherited Members
Constructors
DigestAuthenticationHandler(IOptionsMonitor<DigestAuthenticationOptions>, ILoggerFactory, UrlEncoder, INonceTracker)
Initializes a new instance of the DigestAuthenticationHandler class.
public DigestAuthenticationHandler(IOptionsMonitor<DigestAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, INonceTracker nonceTracker = null)
Parameters
optionsIOptionsMonitor<DigestAuthenticationOptions>The monitor for the options instance.
loggerILoggerFactoryThe ILoggerFactory.
encoderUrlEncoderThe UrlEncoder.
nonceTrackerINonceTrackerThe dependency injected implementation of an INonceTracker.
Methods
HandleAuthenticateAsync()
Handle authenticate as an asynchronous operation.
protected override Task<AuthenticateResult> HandleAuthenticateAsync()
Returns
- Task<AuthenticateResult>
A Task<TResult> representing the asynchronous operation.
HandleChallengeAsync(AuthenticationProperties)
Handle challenge as an asynchronous operation.
protected override Task HandleChallengeAsync(AuthenticationProperties properties)
Parameters
propertiesAuthenticationPropertiesThe properties.
Returns
Remarks
qop is included and supported to be compliant with RFC 2617 (hence, this implementation cannot revert to reduced legacy RFC 2069 mode).
See Also
AuthenticationHandler<TOptions>