Table of Contents

Class DigestAuthenticationMiddleware

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

Provides a HTTP Digest Access Authentication middleware implementation for ASP.NET Core.

public class DigestAuthenticationMiddleware : ConfigurableMiddleware<INonceTracker, DigestAuthenticationOptions>, IConfigurable<DigestAuthenticationOptions>
Inheritance
Object
DigestAuthenticationMiddleware
Implements
Inherited Members

Constructors

DigestAuthenticationMiddleware(RequestDelegate, IOptions<DigestAuthenticationOptions>)

Initializes a new instance of the DigestAuthenticationMiddleware class.

public DigestAuthenticationMiddleware(RequestDelegate next, IOptions<DigestAuthenticationOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup IOptions<DigestAuthenticationOptions>

The DigestAuthenticationOptions which need to be configured.

DigestAuthenticationMiddleware(RequestDelegate, Action<DigestAuthenticationOptions>)

Initializes a new instance of the DigestAuthenticationMiddleware class.

public DigestAuthenticationMiddleware(RequestDelegate next, Action<DigestAuthenticationOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup Action<DigestAuthenticationOptions>

The middleware DigestAuthenticationOptions which need to be configured.

Methods

InvokeAsync(HttpContext, INonceTracker)

public override async Task InvokeAsync(HttpContext context, INonceTracker di)

Parameters

context HttpContext

The context of the current request.

di INonceTracker

The dependency injected implementation of an INonceTracker.

Returns

Task

A task that represents the execution of this middleware.

Remarks

qop is included and supported to be compliant with RFC 2617 (hence, this implementation cannot revert to reduced legacy RFC 2069 mode).