Table of Contents

UseBasicAuthentication Method

Definition

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

builder IApplicationBuilder

The type that provides the mechanisms to configure an application’s request pipeline.

setup Action<BasicAuthenticationOptions>

The HTTP BasicAuthenticationOptions middleware which may be configured.

Returns

IApplicationBuilder

A reference to builder after the operation has completed.