Class HmacAuthenticationMiddleware
- Assembly
- Cuemon.AspNetCore.Authentication.dll
Provides a HTTP HMAC Authentication middleware implementation for ASP.NET Core.
public class HmacAuthenticationMiddleware : ConfigurableMiddleware<HmacAuthenticationOptions>, IConfigurable<HmacAuthenticationOptions>
- Inheritance
-
HmacAuthenticationMiddleware
- Implements
- Inherited Members
Constructors
HmacAuthenticationMiddleware(RequestDelegate, IOptions<HmacAuthenticationOptions>)
Initializes a new instance of the HmacAuthenticationMiddleware class.
public HmacAuthenticationMiddleware(RequestDelegate next, IOptions<HmacAuthenticationOptions> setup)
Parameters
next
RequestDelegateThe delegate of the request pipeline to invoke.
setup
IOptions<HmacAuthenticationOptions>The HmacAuthenticationOptions which need to be configured.
HmacAuthenticationMiddleware(RequestDelegate, Action<HmacAuthenticationOptions>)
Initializes a new instance of the HmacAuthenticationMiddleware class.
public HmacAuthenticationMiddleware(RequestDelegate next, Action<HmacAuthenticationOptions> setup)
Parameters
next
RequestDelegateThe delegate of the request pipeline to invoke.
setup
Action<HmacAuthenticationOptions>The middleware HmacAuthenticationOptions which need to be configured.
Methods
InvokeAsync(HttpContext)
Executes the HmacAuthenticationMiddleware.
public override async Task InvokeAsync(HttpContext context)
Parameters
context
HttpContextThe context of the current request.
Returns
- Task
A task that represents the execution of this middleware.