Table of Contents

Class HmacAuthenticationMiddleware

Namespace
Cuemon.AspNetCore.Authentication.Hmac
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 RequestDelegate

The 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 RequestDelegate

The delegate of the request pipeline to invoke.

setup Action<HmacAuthenticationOptions>

The middleware HmacAuthenticationOptions which need to be configured.

Methods

InvokeAsync(HttpContext)

public override async Task InvokeAsync(HttpContext context)

Parameters

context HttpContext

The context of the current request.

Returns

Task

A task that represents the execution of this middleware.