Class DigestAccessAuthenticationMiddleware
Provides a HTTP Digest Access Authentication middleware implementation for ASP.NET Core.
Inheritance
System.Object
DigestAccessAuthenticationMiddleware
Implements
Inherited Members
Namespace: Cuemon.AspNetCore.Authentication
Assembly: Cuemon.AspNetCore.Authentication.dll
Syntax
public class DigestAccessAuthenticationMiddleware : ConfigurableMiddleware<DigestAccessAuthenticationOptions>, IConfigurable<DigestAccessAuthenticationOptions>
Constructors
| Improve this DocDigestAccessAuthenticationMiddleware(RequestDelegate, IOptions<DigestAccessAuthenticationOptions>)
Initializes a new instance of the DigestAccessAuthenticationMiddleware class.
Declaration
public DigestAccessAuthenticationMiddleware(RequestDelegate next, IOptions<DigestAccessAuthenticationOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.RequestDelegate | next | The delegate of the request pipeline to invoke. |
Microsoft.Extensions.Options.IOptions<DigestAccessAuthenticationOptions> | setup | The DigestAccessAuthenticationOptions which need to be configured. |
DigestAccessAuthenticationMiddleware(RequestDelegate, Action<DigestAccessAuthenticationOptions>)
Initializes a new instance of the DigestAccessAuthenticationMiddleware class.
Declaration
public DigestAccessAuthenticationMiddleware(RequestDelegate next, Action<DigestAccessAuthenticationOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.RequestDelegate | next | The delegate of the request pipeline to invoke. |
System.Action<DigestAccessAuthenticationOptions> | setup | The middleware DigestAccessAuthenticationOptions which need to be configured. |
Properties
| Improve this DocAuthenticationScheme
Gets the name of the authentication scheme.
Declaration
public string AuthenticationScheme { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the authentication scheme. |
Methods
| Improve this DocInvokeAsync(HttpContext)
Executes the DigestAccessAuthenticationMiddleware.
Declaration
public override Task InvokeAsync(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | context | The context of the current request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the execution of this middleware. |
Overrides
Cuemon.AspNetCore.ConfigurableMiddleware<Cuemon.AspNetCore.Authentication.DigestAccessAuthenticationOptions>.InvokeAsync(Microsoft.AspNetCore.Http.HttpContext)