MicrosoftAccountExtensions.AddMicrosoftAccount 方法

定义

重载

AddMicrosoftAccount(AuthenticationBuilder)

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>)

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>)

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

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

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

AddMicrosoftAccount(AuthenticationBuilder)

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

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

参数

返回

操作完成后对 builder 的引用。

适用于

AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>)

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

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

参数

configureOptions
Action<MicrosoftAccountOptions>

用于配置 MicrosoftAccountOptions的委托。

返回

操作完成后对 builder 的引用。

适用于

AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>)

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

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

参数

authenticationScheme
String

身份验证方案。

configureOptions
Action<MicrosoftAccountOptions>

用于配置 MicrosoftAccountOptions的委托。

返回

操作完成后对 builder 的引用。

适用于

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

使用默认方案将 AuthenticationBuilder 基于 Microsoft 帐户 OAuth 的身份验证添加到 。 默认方案由 AuthenticationScheme指定。

Microsoft 帐户身份验证允许应用程序用户使用其工作、学校或个人 Microsoft 帐户登录。

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

参数

authenticationScheme
String

身份验证方案。

displayName
String

身份验证处理程序的显示名称。

configureOptions
Action<MicrosoftAccountOptions>

用于配置 MicrosoftAccountOptions的委托。

返回

操作完成后对 builder 的引用。

适用于