Compartir a través de


OpenIdConnectAppBuilderExtensions.UseOpenIdConnectAuthentication Método

Definición

Sobrecargas

UseOpenIdConnectAuthentication(IApplicationBuilder)
Obsoletos.
Obsoletos.

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

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)
Obsoletos.
Obsoletos.

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

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

Agrega el OpenIdConnectMiddleware middleware al especificado IApplicationBuilder, que habilita las funcionalidades de autenticación de OpenID Connect.

UseOpenIdConnectAuthentication(IApplicationBuilder)

Source:
OpenIdConnectAppBuilderExtensions.cs
Source:
OpenIdConnectAppBuilderExtensions.cs

Precaución

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

UseOpenIdConnectAuthentication está obsoleto. Configure la autenticación de OpenIdConnect con AddAuthentication(). AddOpenIdConnect 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 ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOpenIdConnectAuthentication (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

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

Source:
OpenIdConnectAppBuilderExtensions.cs
Source:
OpenIdConnectAppBuilderExtensions.cs

Precaución

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

UseOpenIdConnectAuthentication está obsoleto. Configure la autenticación de OpenIdConnect con AddAuthentication(). AddOpenIdConnect 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 ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^ options);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions options);
[System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions options);
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOpenIdConnectAuthentication (app As IApplicationBuilder, options As OpenIdConnectOptions) As IApplicationBuilder

Parámetros

app
IApplicationBuilder

IApplicationBuilder al que se va a agregar el controlador.

options
OpenIdConnectOptions

que OpenIdConnectOptions 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

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

Agrega el OpenIdConnectMiddleware middleware al especificado IApplicationBuilder, que habilita las funcionalidades de autenticación de OpenID Connect.

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

Parámetros

app
IApplicationBuilder

IApplicationBuilder al que se va a agregar el middleware.

options
OpenIdConnectOptions

que OpenIdConnectOptions especifica las opciones del middleware.

Devoluciones

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

Se aplica a