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