Table of Contents

Class AuthenticationBuilderExtensions

Namespace
Cuemon.Extensions.AspNetCore.Authentication
Assembly
Cuemon.Extensions.AspNetCore.Authentication.dll

Extension methods for the Microsoft.AspNetCore.Authentication.AuthenticationBuilder class.

public static class AuthenticationBuilderExtensions
Inheritance
Object
AuthenticationBuilderExtensions

Methods

AddBasic(AuthenticationBuilder, Action<BasicAuthenticationOptions>)

Adds an BasicAuthenticationHandler to the authentication middleware.

public static AuthenticationBuilder AddBasic(this AuthenticationBuilder builder, Action<BasicAuthenticationOptions> setup)

Parameters

builder AuthenticationBuilder

The Microsoft.AspNetCore.Authentication.AuthenticationBuilder to extend.

setup Action<BasicAuthenticationOptions>

The BasicAuthenticationOptions which needs to be configured.

Returns

AuthenticationBuilder

A reference to builder so that additional calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed to configure an instance of BasicAuthenticationOptions in a valid state.

AddDigestAccess(AuthenticationBuilder, Action<DigestAuthenticationOptions>)

Adds an DigestAuthenticationHandler to the authentication middleware.

public static AuthenticationBuilder AddDigestAccess(this AuthenticationBuilder builder, Action<DigestAuthenticationOptions> setup)

Parameters

builder AuthenticationBuilder

The Microsoft.AspNetCore.Authentication.AuthenticationBuilder to extend.

setup Action<DigestAuthenticationOptions>

The DigestAuthenticationOptions which needs to be configured.

Returns

AuthenticationBuilder

A reference to builder so that additional calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed to configure an instance of DigestAuthenticationOptions in a valid state.

AddHmac(AuthenticationBuilder, Action<HmacAuthenticationOptions>)

Adds an HmacAuthenticationHandler to the authentication middleware.

public static AuthenticationBuilder AddHmac(this AuthenticationBuilder builder, Action<HmacAuthenticationOptions> setup)

Parameters

builder AuthenticationBuilder

The Microsoft.AspNetCore.Authentication.AuthenticationBuilder to extend.

setup Action<HmacAuthenticationOptions>

The HmacAuthenticationOptions which needs to be configured.

Returns

AuthenticationBuilder

A reference to builder so that additional calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed to configure an instance of HmacAuthenticationOptions in a valid state.