MicrosoftAccountAppBuilderExtensions.UseMicrosoftAccountAuthentication Method

Definition

Overloads

UseMicrosoftAccountAuthentication(IApplicationBuilder)
Obsolete.
Obsolete.

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)
Obsolete.
Obsolete.

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

Adds the MicrosoftAccountMiddleware middleware to the specified IApplicationBuilder, which enables Microsoft Account authentication capabilities.

UseMicrosoftAccountAuthentication(IApplicationBuilder)

Source:
MicrosoftAccountAppBuilderExtensions.cs
Source:
MicrosoftAccountAppBuilderExtensions.cs

Caution

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

C#
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
C#
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
C#
[System.Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);

Parameters

app
IApplicationBuilder

The IApplicationBuilder to add the handler to.

Returns

A reference to this instance after the operation has completed.

Attributes

Applies to

ASP.NET Core 2.2 ja muut versiot
Tuote Versiot (Vanhentunut)
ASP.NET Core 1.0, 1.1 (2.0, 2.1, 2.2)

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

Source:
MicrosoftAccountAppBuilderExtensions.cs
Source:
MicrosoftAccountAppBuilderExtensions.cs

Caution

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

C#
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions options);
C#
[System.Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions options);

Parameters

app
IApplicationBuilder

The IApplicationBuilder to add the handler to.

options
MicrosoftAccountOptions

A MicrosoftAccountOptions that specifies options for the handler.

Returns

A reference to this instance after the operation has completed.

Attributes

Applies to

ASP.NET Core 2.2 ja muut versiot
Tuote Versiot (Vanhentunut)
ASP.NET Core (2.0, 2.1, 2.2)

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

Adds the MicrosoftAccountMiddleware middleware to the specified IApplicationBuilder, which enables Microsoft Account authentication capabilities.

C#
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.MicrosoftAccountOptions options);

Parameters

app
IApplicationBuilder

The IApplicationBuilder to add the middleware to.

options
MicrosoftAccountOptions

A MicrosoftAccountOptions that specifies options for the middleware.

Returns

A reference to this instance after the operation has completed.

Applies to

ASP.NET Core 1.1 ja ASP.NET Core 1.0
Tuote Versiot
ASP.NET Core 1.0, 1.1