Class HmacAuthenticationMiddleware
Provides a HTTP HMAC Authentication middleware implementation for ASP.NET Core.
Inheritance
System.Object
HmacAuthenticationMiddleware
Implements
Namespace: Cuemon.AspNetCore.Authentication
Assembly: Cuemon.AspNetCore.Authentication.dll
Syntax
public class HmacAuthenticationMiddleware : ConfigurableMiddleware<HmacAuthenticationOptions>, IConfigurable<HmacAuthenticationOptions>
Constructors
| Improve this DocHmacAuthenticationMiddleware(RequestDelegate, IOptions<HmacAuthenticationOptions>)
Initializes a new instance of the HmacAuthenticationMiddleware class.
Declaration
public HmacAuthenticationMiddleware(RequestDelegate next, IOptions<HmacAuthenticationOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.RequestDelegate | next | The delegate of the request pipeline to invoke. |
Microsoft.Extensions.Options.IOptions<HmacAuthenticationOptions> | setup | The HmacAuthenticationOptions which need to be configured. |
HmacAuthenticationMiddleware(RequestDelegate, Action<HmacAuthenticationOptions>)
Initializes a new instance of the HmacAuthenticationMiddleware class.
Declaration
public HmacAuthenticationMiddleware(RequestDelegate next, Action<HmacAuthenticationOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.RequestDelegate | next | The delegate of the request pipeline to invoke. |
System.Action<HmacAuthenticationOptions> | setup | The middleware HmacAuthenticationOptions which need to be configured. |
Methods
| Improve this DocInvokeAsync(HttpContext)
Executes the HmacAuthenticationMiddleware.
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.HmacAuthenticationOptions>.InvokeAsync(Microsoft.AspNetCore.Http.HttpContext)