Table of Contents

Class DigestAuthenticationHandler

Namespace
Cuemon.AspNetCore.Authentication.Digest
Assembly
Cuemon.AspNetCore.Authentication.dll

Provides a HTTP Digest Access Authentication implementation of Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions> for ASP.NET Core.

public class DigestAuthenticationHandler : AuthenticationHandler<DigestAuthenticationOptions>, IAuthenticationHandler
Inheritance
AuthenticationHandler<DigestAuthenticationOptions>
DigestAuthenticationHandler
Implements
IAuthenticationHandler
Inherited Members
AuthenticationHandler<DigestAuthenticationOptions>.InitializeAsync(AuthenticationScheme, HttpContext)
AuthenticationHandler<DigestAuthenticationOptions>.InitializeEventsAsync()
AuthenticationHandler<DigestAuthenticationOptions>.CreateEventsAsync()
AuthenticationHandler<DigestAuthenticationOptions>.InitializeHandlerAsync()
AuthenticationHandler<DigestAuthenticationOptions>.BuildRedirectUri(String)
AuthenticationHandler<DigestAuthenticationOptions>.ResolveTarget(String)
AuthenticationHandler<DigestAuthenticationOptions>.AuthenticateAsync()
AuthenticationHandler<DigestAuthenticationOptions>.HandleAuthenticateOnceAsync()
AuthenticationHandler<DigestAuthenticationOptions>.HandleAuthenticateOnceSafeAsync()
AuthenticationHandler<DigestAuthenticationOptions>.HandleForbiddenAsync(AuthenticationProperties)
AuthenticationHandler<DigestAuthenticationOptions>.ChallengeAsync(AuthenticationProperties)
AuthenticationHandler<DigestAuthenticationOptions>.ForbidAsync(AuthenticationProperties)
AuthenticationHandler<DigestAuthenticationOptions>.Scheme
AuthenticationHandler<DigestAuthenticationOptions>.Options
AuthenticationHandler<DigestAuthenticationOptions>.Context
AuthenticationHandler<DigestAuthenticationOptions>.Request
AuthenticationHandler<DigestAuthenticationOptions>.Response
AuthenticationHandler<DigestAuthenticationOptions>.OriginalPath
AuthenticationHandler<DigestAuthenticationOptions>.OriginalPathBase
AuthenticationHandler<DigestAuthenticationOptions>.Logger
AuthenticationHandler<DigestAuthenticationOptions>.UrlEncoder
AuthenticationHandler<DigestAuthenticationOptions>.Clock
AuthenticationHandler<DigestAuthenticationOptions>.TimeProvider
AuthenticationHandler<DigestAuthenticationOptions>.OptionsMonitor
AuthenticationHandler<DigestAuthenticationOptions>.Events
AuthenticationHandler<DigestAuthenticationOptions>.ClaimsIssuer
AuthenticationHandler<DigestAuthenticationOptions>.CurrentUri

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

options IOptionsMonitor<DigestAuthenticationOptions>

The monitor for the options instance.

logger ILoggerFactory

The ILoggerFactory.

encoder UrlEncoder

The UrlEncoder.

nonceTracker INonceTracker

The 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 async Task HandleChallengeAsync(AuthenticationProperties properties)

Parameters

properties AuthenticationProperties

The properties.

Returns

Task

A Task representing the asynchronous operation.

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>