CookieAppBuilderExtensions.UseCookieAuthentication Metoda

Definicja

Przeciążenia

UseCookieAuthentication(IApplicationBuilder)
Przestarzałe.
Przestarzałe.

UseCookieAuthentication jest przestarzałe. Skonfiguruj uwierzytelnianie plików cookie za pomocą polecenia AddAuthentication(). AddCookie w obszarze ConfigureServices. Zobacz https://go.microsoft.com/fwlink/?linkid=845470 , aby uzyskać więcej informacji.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
Przestarzałe.
Przestarzałe.

UseCookieAuthentication jest przestarzałe. Skonfiguruj uwierzytelnianie plików cookie za pomocą polecenia AddAuthentication(). AddCookie w obszarze ConfigureServices. Zobacz https://go.microsoft.com/fwlink/?linkid=845470 , aby uzyskać więcej informacji.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Dodaje oprogramowanie pośredniczące do określonego IApplicationBuilderelementu , co umożliwia uwierzytelnianie plików cookie.

UseCookieAuthentication(IApplicationBuilder)

Źródło:
CookieAppBuilderExtensions.cs
Źródło:
CookieAppBuilderExtensions.cs

Przestroga

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

UseCookieAuthentication jest przestarzałe. Skonfiguruj uwierzytelnianie plików cookie za pomocą polecenia AddAuthentication(). AddCookie w obszarze ConfigureServices. Zobacz https://go.microsoft.com/fwlink/?linkid=845470 , aby uzyskać więcej informacji.

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

Element IApplicationBuilder do dodawania programu obsługi.

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Atrybuty

Dotyczy

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Źródło:
CookieAppBuilderExtensions.cs
Źródło:
CookieAppBuilderExtensions.cs

Przestroga

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

UseCookieAuthentication jest przestarzałe. Skonfiguruj uwierzytelnianie plików cookie za pomocą polecenia AddAuthentication(). AddCookie w obszarze ConfigureServices. Zobacz https://go.microsoft.com/fwlink/?linkid=845470 , aby uzyskać więcej informacji.

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

Element IApplicationBuilder do dodawania programu obsługi.

options
CookieAuthenticationOptions

Element CookieAuthenticationOptions określający opcje programu obsługi.

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Atrybuty

Dotyczy

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Dodaje oprogramowanie pośredniczące do określonego IApplicationBuilderelementu , co umożliwia uwierzytelnianie plików 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

Element IApplicationBuilder do dodawania oprogramowania pośredniczącego.

options
CookieAuthenticationOptions

Element CookieAuthenticationOptions określający opcje oprogramowania pośredniczącego.

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Dotyczy