Class BasicAuthenticationBuilderExtension
This is a factory implementation of the BasicAuthenticationMiddleware class.
Inheritance
System.Object
BasicAuthenticationBuilderExtension
Namespace: Cuemon.AspNetCore.Authentication
Assembly: Cuemon.AspNetCore.Authentication.dll
Syntax
public static class BasicAuthenticationBuilderExtension
Methods
| Improve this DocUseBasicAuthentication(IApplicationBuilder, Action<BasicAuthenticationOptions>)
Adds a HTTP Basic Authentication scheme to the Microsoft.AspNetCore.Builder.IApplicationBuilder request execution pipeline.
Declaration
public static IApplicationBuilder UseBasicAuthentication(this IApplicationBuilder builder, Action<BasicAuthenticationOptions> setup = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Builder.IApplicationBuilder | builder | The type that provides the mechanisms to configure an application’s request pipeline. |
| System.Action<BasicAuthenticationOptions> | setup | The HTTP BasicAuthenticationOptions middleware which need to be configured. |
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Builder.IApplicationBuilder | A reference to this instance after the operation has completed. |