Table of Contents

AddDigestAccess Method

Definition

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

ArgumentNullException

builder cannot be null.

ArgumentException

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