Compartilhar via


CookieAppBuilderExtensions.UseCookieAuthentication Método

Definição

Sobrecargas

UseCookieAuthentication(IApplicationBuilder)
Obsoleto.
Obsoleto.

UseCookieAuthentication está obsoleto. Configurar a autenticação de cookie com AddAuthentication(). AddCookie em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
Obsoleto.
Obsoleto.

UseCookieAuthentication está obsoleto. Configurar a autenticação de cookie com AddAuthentication(). AddCookie em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Adiciona o CookieAuthenticationMiddleware middleware ao especificado IApplicationBuilder, que habilita os recursos de autenticação de cookie.

UseCookieAuthentication(IApplicationBuilder)

Origem:
CookieAppBuilderExtensions.cs
Origem:
CookieAppBuilderExtensions.cs

Cuidado

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

UseCookieAuthentication está obsoleto. Configurar a autenticação de cookie com AddAuthentication(). AddCookie em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

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

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Origem:
CookieAppBuilderExtensions.cs
Origem:
CookieAppBuilderExtensions.cs

Cuidado

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

UseCookieAuthentication está obsoleto. Configurar a autenticação de cookie com AddAuthentication(). AddCookie em ConfigureServices. Consulte https://go.microsoft.com/fwlink/?linkid=845470 para obter mais detalhes.

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

Parâmetros

app
IApplicationBuilder

O IApplicationBuilder ao qual adicionar o manipulador.

options
CookieAuthenticationOptions

Um CookieAuthenticationOptions 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

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Adiciona o CookieAuthenticationMiddleware middleware ao especificado IApplicationBuilder, que habilita os recursos de autenticação de cookie.

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

Parâmetros

app
IApplicationBuilder

O IApplicationBuilder ao qual adicionar o middleware.

options
CookieAuthenticationOptions

Um CookieAuthenticationOptions 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