Sdílet prostřednictvím


CookieAppBuilderExtensions.UseCookieAuthentication Metoda

Definice

Přetížení

UseCookieAuthentication(IApplicationBuilder)
Zastaralé.
Zastaralé.

UseCookieAuthentication je zastaralé. Nakonfigurujte ověřování pomocí souborů cookie pomocí addAuthentication(). AddCookie v ConfigureServices. Další podrobnosti najdete https://go.microsoft.com/fwlink/?linkid=845470 v tématu .

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
Zastaralé.
Zastaralé.

UseCookieAuthentication je zastaralé. Nakonfigurujte ověřování pomocí souborů cookie pomocí addAuthentication(). AddCookie v ConfigureServices. Další podrobnosti najdete https://go.microsoft.com/fwlink/?linkid=845470 v tématu .

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje ověřování souborů cookie.

UseCookieAuthentication(IApplicationBuilder)

Zdroj:
CookieAppBuilderExtensions.cs
Zdroj:
CookieAppBuilderExtensions.cs

Upozornění

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

UseCookieAuthentication je zastaralé. Nakonfigurujte ověřování pomocí souborů cookie pomocí addAuthentication(). AddCookie v ConfigureServices. Další podrobnosti najdete https://go.microsoft.com/fwlink/?linkid=845470 v tématu .

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

Parametry

app
IApplicationBuilder

Chcete-li IApplicationBuilder přidat obslužnou rutinu do.

Návraty

Odkaz na tuto instanci po dokončení operace.

Atributy

Platí pro

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Zdroj:
CookieAppBuilderExtensions.cs
Zdroj:
CookieAppBuilderExtensions.cs

Upozornění

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

UseCookieAuthentication je zastaralé. Nakonfigurujte ověřování pomocí souborů cookie pomocí addAuthentication(). AddCookie v ConfigureServices. Další podrobnosti najdete https://go.microsoft.com/fwlink/?linkid=845470 v tématu .

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

Parametry

app
IApplicationBuilder

Chcete-li IApplicationBuilder přidat obslužnou rutinu do.

options
CookieAuthenticationOptions

A CookieAuthenticationOptions , který určuje možnosti pro obslužnou rutinu.

Návraty

Odkaz na tuto instanci po dokončení operace.

Atributy

Platí pro

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje ověřování souborů 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

Parametry

app
IApplicationBuilder

K IApplicationBuilder přidání middlewaru.

options
CookieAuthenticationOptions

A CookieAuthenticationOptions , který určuje možnosti pro middleware.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro