MicrosoftAccountExtensions.AddMicrosoftAccount Method

Definition

Overloads

AddMicrosoftAccount(AuthenticationBuilder)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

AddMicrosoftAccount(AuthenticationBuilder, String, String, Action<MicrosoftAccountOptions>)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

AddMicrosoftAccount(AuthenticationBuilder)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddMicrosoftAccount (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddMicrosoftAccount : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddMicrosoftAccount (builder As AuthenticationBuilder) As AuthenticationBuilder

Parameters

Returns

AuthenticationBuilder

A reference to builder after the operation has completed.

Applies to

AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddMicrosoftAccount (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions> configureOptions);
static member AddMicrosoftAccount : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddMicrosoftAccount (builder As AuthenticationBuilder, configureOptions As Action(Of MicrosoftAccountOptions)) As AuthenticationBuilder

Parameters

configureOptions
Action<MicrosoftAccountOptions>

A delegate to configure MicrosoftAccountOptions.

Returns

AuthenticationBuilder

A reference to builder after the operation has completed.

Applies to

AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddMicrosoftAccount (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions> configureOptions);
static member AddMicrosoftAccount : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddMicrosoftAccount (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of MicrosoftAccountOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String

The authentication scheme.

configureOptions
Action<MicrosoftAccountOptions>

A delegate to configure MicrosoftAccountOptions.

Returns

AuthenticationBuilder

A reference to builder after the operation has completed.

Applies to

AddMicrosoftAccount(AuthenticationBuilder, String, String, Action<MicrosoftAccountOptions>)

Adds Microsoft Account OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Microsoft Account authentication allows application users to sign in with their work, school, or personal Microsoft account.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddMicrosoftAccount (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions> configureOptions);
static member AddMicrosoftAccount : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddMicrosoftAccount (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of MicrosoftAccountOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String

The authentication scheme.

displayName
String

A display name for the authentication handler.

configureOptions
Action<MicrosoftAccountOptions>

A delegate to configure MicrosoftAccountOptions.

Returns

AuthenticationBuilder

A reference to builder after the operation has completed.

Applies to