Class DigestAuthenticationMiddleware
- 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
-
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
RequestDelegateThe 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
RequestDelegateThe delegate of the request pipeline to invoke.
setup
Action<DigestAuthenticationOptions>The middleware DigestAuthenticationOptions which need to be configured.
Methods
InvokeAsync(HttpContext, INonceTracker)
Executes the DigestAuthenticationMiddleware.
public override async Task InvokeAsync(HttpContext context, INonceTracker di)
Parameters
context
HttpContextThe context of the current request.
di
INonceTrackerThe 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).