AddHmac Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Authentication
- Assemblies
- Cuemon.Extensions.AspNetCore.Authentication.dll
AddHmac(AuthenticationBuilder, Action<HmacAuthenticationOptions>)
Adds an HmacAuthenticationHandler to the authentication middleware.
public static AuthenticationBuilder AddHmac(this AuthenticationBuilder builder, Action<HmacAuthenticationOptions> setup)
Parameters
builderAuthenticationBuilderThe AuthenticationBuilder to extend.
setupAction<HmacAuthenticationOptions>The HmacAuthenticationOptions which needs to be configured.
Returns
- AuthenticationBuilder
A reference to
builderso that additional calls can be chained.
Exceptions
- ArgumentNullException
buildercannot be null.- ArgumentException
setupfailed to configure an instance of HmacAuthenticationOptions in a valid state.