UseBasicAuthentication Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Authentication
- Assemblies
- Cuemon.Extensions.AspNetCore.Authentication.dll
UseBasicAuthentication(IApplicationBuilder, Action<BasicAuthenticationOptions>)
Adds a HTTP Basic Authentication scheme to the IApplicationBuilder request execution pipeline.
public static IApplicationBuilder UseBasicAuthentication(this IApplicationBuilder builder, Action<BasicAuthenticationOptions> setup = null)
Parameters
builderIApplicationBuilderThe type that provides the mechanisms to configure an application’s request pipeline.
setupAction<BasicAuthenticationOptions>The HTTP BasicAuthenticationOptions middleware which may be configured.
Returns
- IApplicationBuilder
A reference to
builderafter the operation has completed.