Table of Contents

BasicAuthenticationMiddleware Constructor

Definition

BasicAuthenticationMiddleware(RequestDelegate, IOptions<BasicAuthenticationOptions>)

Initializes a new instance of the BasicAuthenticationMiddleware class.

public BasicAuthenticationMiddleware(RequestDelegate next, IOptions<BasicAuthenticationOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup IOptions<BasicAuthenticationOptions>

The BasicAuthenticationOptions which need to be configured.

BasicAuthenticationMiddleware(RequestDelegate, Action<BasicAuthenticationOptions>)

Initializes a new instance of the BasicAuthenticationMiddleware class.

public BasicAuthenticationMiddleware(RequestDelegate next, Action<BasicAuthenticationOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup Action<BasicAuthenticationOptions>

The middleware BasicAuthenticationOptions which need to be configured.