Udostępnij przez


OAuthAppBuilderExtensions.UseOAuthAuthentication Metoda

Definicja

Przeciążenia

UseOAuthAuthentication(IApplicationBuilder)
Przestarzałe.
Przestarzałe.

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

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)
Przestarzałe.
Przestarzałe.

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

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

OAuthMiddleware<TOptions> Dodaje oprogramowanie pośredniczące do określonego IApplicationBuilderelementu , które umożliwia uwierzytelnianie OAuth 2.0.

UseOAuthAuthentication(IApplicationBuilder)

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

Przestroga

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

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

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

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

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

Przestroga

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

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

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

Parametry

app
IApplicationBuilder

Element IApplicationBuilder do dodania programu obsługi.

options
OAuthOptions

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

Zwraca

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

Atrybuty

Dotyczy

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

OAuthMiddleware<TOptions> Dodaje oprogramowanie pośredniczące do określonego IApplicationBuilderelementu , które umożliwia uwierzytelnianie OAuth 2.0.

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

Parametry

app
IApplicationBuilder

Element IApplicationBuilder do dodania oprogramowania pośredniczącego.

options
OAuthOptions

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

Zwraca

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

Dotyczy