GoogleExtensions.AddGoogle 方法

定义

重载

AddGoogle(AuthenticationBuilder)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

AddGoogle(AuthenticationBuilder, Action<GoogleOptions>)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

AddGoogle(AuthenticationBuilder)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

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

参数

返回

操作完成后对 builder 的引用。

适用于

AddGoogle(AuthenticationBuilder, Action<GoogleOptions>)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

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

参数

configureOptions
Action<GoogleOptions>

用于配置 GoogleOptions的委托。

返回

操作完成后对 builder 的引用。

适用于

AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

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

参数

authenticationScheme
String

身份验证方案。

configureOptions
Action<GoogleOptions>

用于配置 GoogleOptions的委托。

返回

操作完成后对 builder 的引用。

适用于

AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>)

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

Google 身份验证允许应用程序用户使用其 Google 帐户登录。

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

参数

authenticationScheme
String

身份验证方案。

displayName
String

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

configureOptions
Action<GoogleOptions>

用于配置 GoogleOptions的委托。

返回

操作完成后对 builder 的引用。

适用于