Compartilhar via


OpenIdConnectAppBuilderExtensions.UseOpenIdConnectAuthentication Método

Definição

Sobrecargas

UseOpenIdConnectAuthentication(IApplicationBuilder)
Obsoleto.
Obsoleto.

UseOpenIdConnectAuthentication é obsoleto. Configurar a autenticação OpenIdConnect com AddAuthentication(). AddOpenIdConnect em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)
Obsoleto.
Obsoleto.

UseOpenIdConnectAuthentication é obsoleto. Configurar a autenticação OpenIdConnect com AddAuthentication(). AddOpenIdConnect em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

Adiciona o middleware OpenIdConnectMiddleware ao IApplicationBuilderespecificado, que habilita os recursos de autenticação do OpenID Connect.

UseOpenIdConnectAuthentication(IApplicationBuilder)

Origem:
OpenIdConnectAppBuilderExtensions.cs
Origem:
OpenIdConnectAppBuilderExtensions.cs

Cuidado

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

UseOpenIdConnectAuthentication é obsoleto. Configurar a autenticação OpenIdConnect com AddAuthentication(). AddOpenIdConnect em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

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

O IApplicationBuilder ao qual adicionar o manipulador.

Retornos

Uma referência a essa instância após a conclusão da operação.

Atributos

Aplica-se a

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

Origem:
OpenIdConnectAppBuilderExtensions.cs
Origem:
OpenIdConnectAppBuilderExtensions.cs

Cuidado

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

UseOpenIdConnectAuthentication é obsoleto. Configurar a autenticação OpenIdConnect com AddAuthentication(). AddOpenIdConnect em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

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

O IApplicationBuilder ao qual adicionar o manipulador.

options
OpenIdConnectOptions

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

Retornos

Uma referência a essa instância após a conclusão da operação.

Atributos

Aplica-se a

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

Adiciona o middleware OpenIdConnectMiddleware ao IApplicationBuilderespecificado, que habilita os recursos de autenticação do 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

O IApplicationBuilder ao qual adicionar o middleware.

options
OpenIdConnectOptions

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

Retornos

Uma referência a essa instância após a conclusão da operação.

Aplica-se a