AddDigestAccess Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Authentication
- Assemblies
- Cuemon.Extensions.AspNetCore.Authentication.dll
AddDigestAccess(AuthenticationBuilder, Action<DigestAuthenticationOptions>)
Adds an DigestAuthenticationHandler to the authentication middleware.
public static AuthenticationBuilder AddDigestAccess(this AuthenticationBuilder builder, Action<DigestAuthenticationOptions> setup)
Parameters
builderAuthenticationBuilderThe AuthenticationBuilder to extend.
setupAction<DigestAuthenticationOptions>The DigestAuthenticationOptions 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 DigestAuthenticationOptions in a valid state.