GoogleAppBuilderExtensions.UseGoogleAuthentication 方法

定义

重载

UseGoogleAuthentication(IApplicationBuilder)
已过时.

UseGoogleAuthentication 已过时。 使用 AddAuthentication () 配置 Google 身份验证。在 ConfigureServices 中添加 Google。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)
已过时.

UseGoogleAuthentication 已过时。 使用 AddAuthentication () 配置 Google 身份验证。在 ConfigureServices 中添加 Google。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

GoogleMiddleware 中间件添加到指定的 IApplicationBuilder中,这将启用 Google 身份验证功能。

UseGoogleAuthentication(IApplicationBuilder)

Source:
GoogleAppBuilderExtensions.cs
Source:
GoogleAppBuilderExtensions.cs

注意

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

UseGoogleAuthentication 已过时。 使用 AddAuthentication () 配置 Google 身份验证。在 ConfigureServices 中添加 Google。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseGoogleAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseGoogleAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseGoogleAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseGoogleAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseGoogleAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseGoogleAuthentication (app As IApplicationBuilder) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder 向其添加处理程序的 。

返回

完成操作后对此实例的引用。

属性

适用于

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

Source:
GoogleAppBuilderExtensions.cs
Source:
GoogleAppBuilderExtensions.cs

注意

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

UseGoogleAuthentication 已过时。 使用 AddAuthentication () 配置 Google 身份验证。在 ConfigureServices 中添加 Google。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseGoogleAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::Google::GoogleOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseGoogleAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Google.GoogleOptions options);
[System.Obsolete("UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseGoogleAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Google.GoogleOptions options);
static member UseGoogleAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.Google.GoogleOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseGoogleAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.Google.GoogleOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseGoogleAuthentication (app As IApplicationBuilder, options As GoogleOptions) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder 向其添加处理程序的 。

options
GoogleOptions

一个 GoogleOptions ,它指定处理程序的选项。

返回

完成操作后对此实例的引用。

属性

适用于

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

GoogleMiddleware 中间件添加到指定的 IApplicationBuilder中,这将启用 Google 身份验证功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseGoogleAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::GoogleOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseGoogleAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.GoogleOptions options);
static member UseGoogleAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.GoogleOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseGoogleAuthentication (app As IApplicationBuilder, options As GoogleOptions) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder 向其添加中间件的 。

options
GoogleOptions

一个 GoogleOptions ,指定中间件的选项。

返回

完成操作后对此实例的引用。

适用于