Bagikan melalui


CookieAppBuilderExtensions.UseCookieAuthentication Metode

Definisi

Overload

UseCookieAuthentication(IApplicationBuilder)
Kedaluwarsa.
Kedaluwarsa.

UseCookieAuthentication sudah usang. Mengonfigurasi autentikasi Cookie dengan AddAuthentication(). TambahkanCookie di ConfigureServices. Lihat https://go.microsoft.com/fwlink/?linkid=845470 untuk detail selengkapnya.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
Kedaluwarsa.
Kedaluwarsa.

UseCookieAuthentication sudah usang. Mengonfigurasi autentikasi Cookie dengan AddAuthentication(). TambahkanCookie di ConfigureServices. Lihat https://go.microsoft.com/fwlink/?linkid=845470 untuk detail selengkapnya.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan autentikasi cookie.

UseCookieAuthentication(IApplicationBuilder)

Sumber:
CookieAppBuilderExtensions.cs
Sumber:
CookieAppBuilderExtensions.cs

Perhatian

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

UseCookieAuthentication sudah usang. Mengonfigurasi autentikasi Cookie dengan AddAuthentication(). TambahkanCookie di ConfigureServices. Lihat https://go.microsoft.com/fwlink/?linkid=845470 untuk detail selengkapnya.

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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan handler.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Atribut

Berlaku untuk

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Sumber:
CookieAppBuilderExtensions.cs
Sumber:
CookieAppBuilderExtensions.cs

Perhatian

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

UseCookieAuthentication sudah usang. Mengonfigurasi autentikasi Cookie dengan AddAuthentication(). TambahkanCookie di ConfigureServices. Lihat https://go.microsoft.com/fwlink/?linkid=845470 untuk detail selengkapnya.

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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan handler.

options
CookieAuthenticationOptions

CookieAuthenticationOptions yang menentukan opsi untuk handler.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Atribut

Berlaku untuk

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan autentikasi 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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan middleware.

options
CookieAuthenticationOptions

CookieAuthenticationOptions yang menentukan opsi untuk middleware.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Berlaku untuk