Partilhar via


OAuthAppBuilderExtensions.UseOAuthAuthentication Método

Definição

Sobrecargas

UseOAuthAuthentication(IApplicationBuilder)
Obsoleto.
Obsoleto.

UseOAuthAuthentication está obsoleto. Configure a autenticação OAuth com AddAuthentication(). AddOAuth em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)
Obsoleto.
Obsoleto.

UseOAuthAuthentication está obsoleto. Configure a autenticação OAuth com AddAuthentication(). AddOAuth em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Adiciona o OAuthMiddleware<TOptions> middleware ao especificado IApplicationBuilder, que habilita os recursos de autenticação do OAuth 2.0.

UseOAuthAuthentication(IApplicationBuilder)

Origem:
OAuthAppBuilderExtensions.cs
Origem:
OAuthAppBuilderExtensions.cs

Cuidado

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

UseOAuthAuthentication está obsoleto. Configure a autenticação OAuth com AddAuthentication(). AddOAuth em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

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

Parâmetros

app
IApplicationBuilder

O IApplicationBuilder ao qual adicionar o manipulador.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Atributos

Aplica-se a

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Origem:
OAuthAppBuilderExtensions.cs
Origem:
OAuthAppBuilderExtensions.cs

Cuidado

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

UseOAuthAuthentication está obsoleto. Configure a autenticação OAuth com AddAuthentication(). AddOAuth em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

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

Parâmetros

app
IApplicationBuilder

O IApplicationBuilder ao qual adicionar o manipulador.

options
OAuthOptions

Um OAuthOptions que especifica opções para o manipulador.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Atributos

Aplica-se a

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Adiciona o OAuthMiddleware<TOptions> middleware ao especificado IApplicationBuilder, que habilita os recursos de autenticação do 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

Parâmetros

app
IApplicationBuilder

O IApplicationBuilder ao qual adicionar o middleware.

options
OAuthOptions

Um OAuthOptions que especifica opções para o middleware.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a