C# Class Microsoft.AspNetCore.Builder.BasicAppBuilderExtensions

Basic authentication extensions for IApplicationBuilder.
显示文件 Open project: Microsoft/RTVS

Public Methods

Method Description
UseBasicAuthentication ( this app ) : IApplicationBuilder

Adds a basic authentication middleware to your web application pipeline. This method attempts to obtain options though `IOptions`.

UseBasicAuthentication ( this app, Action configureOptions ) : IApplicationBuilder

Adds a basic authentication middleware to your web application pipeline. This method does not attempt to obtain options though `IOptions`.

UseBasicAuthentication ( this app, BasicOptions options ) : IApplicationBuilder

Adds a basic authentication middleware to your web application pipeline. This method does not attempt to obtain options though `IOptions`.

Method Details

UseBasicAuthentication() public static method

Adds a basic authentication middleware to your web application pipeline. This method attempts to obtain options though `IOptions`.
public static UseBasicAuthentication ( this app ) : IApplicationBuilder
app this The IApplicationBuilder passed to your configuration method
return IApplicationBuilder

UseBasicAuthentication() public static method

Adds a basic authentication middleware to your web application pipeline. This method does not attempt to obtain options though `IOptions`.
public static UseBasicAuthentication ( this app, Action configureOptions ) : IApplicationBuilder
app this The IApplicationBuilder passed to your configuration method
configureOptions Action Used to configure the options for the middleware
return IApplicationBuilder

UseBasicAuthentication() public static method

Adds a basic authentication middleware to your web application pipeline. This method does not attempt to obtain options though `IOptions`.
public static UseBasicAuthentication ( this app, BasicOptions options ) : IApplicationBuilder
app this The IApplicationBuilder passed to your configuration method
options BasicOptions Used to configure the middleware
return IApplicationBuilder