Compartir a través de


OAuthAppBuilderExtensions.UseOAuthAuthentication Método

Definición

Sobrecargas

UseOAuthAuthentication(IApplicationBuilder)
Obsoletos.
Obsoletos.

UseOAuthAuthentication está obsoleto. Configure la autenticación de OAuth con AddAuthentication(). AddOAuth en ConfigureServices. Para obtener más información, consulte https://go.microsoft.com/fwlink/?linkid=845470.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)
Obsoletos.
Obsoletos.

UseOAuthAuthentication está obsoleto. Configure la autenticación de OAuth con AddAuthentication(). AddOAuth en ConfigureServices. Para obtener más información, consulte https://go.microsoft.com/fwlink/?linkid=845470.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Agrega el OAuthMiddleware<TOptions> middleware al especificado IApplicationBuilder, que habilita las funcionalidades de autenticación de OAuth 2.0.

UseOAuthAuthentication(IApplicationBuilder)

Source:
OAuthAppBuilderExtensions.cs
Source:
OAuthAppBuilderExtensions.cs

Precaución

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 la autenticación de OAuth con AddAuthentication(). AddOAuth en ConfigureServices. Para obtener más información, consulte 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

Parámetros

app
IApplicationBuilder

IApplicationBuilder al que se va a agregar el controlador.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Atributos

Se aplica a

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Source:
OAuthAppBuilderExtensions.cs
Source:
OAuthAppBuilderExtensions.cs

Precaución

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 la autenticación de OAuth con AddAuthentication(). AddOAuth en ConfigureServices. Para obtener más información, consulte 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

Parámetros

app
IApplicationBuilder

IApplicationBuilder al que se va a agregar el controlador.

options
OAuthOptions

que OAuthOptions especifica las opciones del controlador.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Atributos

Se aplica a

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Agrega el OAuthMiddleware<TOptions> middleware al especificado IApplicationBuilder, que habilita las funcionalidades de autenticación de 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

IApplicationBuilder al que se va a agregar el middleware.

options
OAuthOptions

que OAuthOptions especifica las opciones del middleware.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Se aplica a