Udostępnij przez


GoogleAppBuilderExtensions.UseGoogleAuthentication Metoda

Definicja

Przeciążenia

UseGoogleAuthentication(IApplicationBuilder)
Przestarzałe.

UseGoogleAuthentication jest przestarzałe. Konfigurowanie uwierzytelniania Google przy użyciu polecenia AddAuthentication(). DodajGoogle w obszarze ConfigureServices. Aby uzyskać więcej informacji, zobacz https://go.microsoft.com/fwlink/?linkid=845470 .

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)
Przestarzałe.

UseGoogleAuthentication jest przestarzałe. Konfigurowanie uwierzytelniania Google przy użyciu polecenia AddAuthentication(). DodajGoogle w obszarze ConfigureServices. Aby uzyskać więcej informacji, zobacz https://go.microsoft.com/fwlink/?linkid=845470 .

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

GoogleMiddleware Dodaje oprogramowanie pośredniczące do określonego IApplicationBuilderelementu , co umożliwia uwierzytelnianie Google.

UseGoogleAuthentication(IApplicationBuilder)

Źródło:
GoogleAppBuilderExtensions.cs
Źródło:
GoogleAppBuilderExtensions.cs

Przestroga

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

UseGoogleAuthentication jest przestarzałe. Konfigurowanie uwierzytelniania Google przy użyciu polecenia AddAuthentication(). DodajGoogle w obszarze ConfigureServices. Aby uzyskać więcej informacji, zobacz 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

Parametry

app
IApplicationBuilder

Element IApplicationBuilder do dodania programu obsługi.

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Atrybuty

Dotyczy

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

Źródło:
GoogleAppBuilderExtensions.cs
Źródło:
GoogleAppBuilderExtensions.cs

Przestroga

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

UseGoogleAuthentication jest przestarzałe. Konfigurowanie uwierzytelniania Google przy użyciu polecenia AddAuthentication(). DodajGoogle w obszarze ConfigureServices. Aby uzyskać więcej informacji, zobacz 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

Parametry

app
IApplicationBuilder

Element IApplicationBuilder do dodania programu obsługi.

options
GoogleOptions

Element GoogleOptions określający opcje programu obsługi.

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Atrybuty

Dotyczy

UseGoogleAuthentication(IApplicationBuilder, GoogleOptions)

GoogleMiddleware Dodaje oprogramowanie pośredniczące do określonego IApplicationBuilderelementu , co umożliwia uwierzytelnianie 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

Parametry

app
IApplicationBuilder

Element IApplicationBuilder do dodania oprogramowania pośredniczącego.

options
GoogleOptions

Element GoogleOptions określający opcje oprogramowania pośredniczącego.

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Dotyczy