CookieAppBuilderExtensions.UseCookieAuthentication Yöntem

Tanım

Aşırı Yüklemeler

UseCookieAuthentication(IApplicationBuilder)
Geçersiz.
Geçersiz.

UseCookieAuthentication kullanımdan kaldırıldı. AddAuthentication() ile Tanımlama Bilgisi kimlik doğrulamasını yapılandırın. ConfigureServices'te AddCookie. Diğer ayrıntılar için bkz https://go.microsoft.com/fwlink/?linkid=845470 .

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
Geçersiz.
Geçersiz.

UseCookieAuthentication kullanımdan kaldırıldı. AddAuthentication() ile Tanımlama Bilgisi kimlik doğrulamasını yapılandırın. ConfigureServices'te AddCookie. Diğer ayrıntılar için bkz https://go.microsoft.com/fwlink/?linkid=845470 .

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Ara yazılımı, tanımlama bilgisi kimlik doğrulaması özelliklerini etkinleştiren belirtilen IApplicationBuilderöğesine ekler.

UseCookieAuthentication(IApplicationBuilder)

Kaynak:
CookieAppBuilderExtensions.cs
Kaynak:
CookieAppBuilderExtensions.cs

Dikkat

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

UseCookieAuthentication kullanımdan kaldırıldı. AddAuthentication() ile Tanımlama Bilgisi kimlik doğrulamasını yapılandırın. ConfigureServices'te AddCookie. Diğer ayrıntılar için bkz https://go.microsoft.com/fwlink/?linkid=845470 .

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

Parametreler

app
IApplicationBuilder

IApplicationBuilder İşleyicinin ekleneceği.

Döndürülenler

İşlem tamamlandıktan sonra bu örneğe başvuru.

Öznitelikler

Şunlara uygulanır

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Kaynak:
CookieAppBuilderExtensions.cs
Kaynak:
CookieAppBuilderExtensions.cs

Dikkat

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

UseCookieAuthentication kullanımdan kaldırıldı. AddAuthentication() ile Tanımlama Bilgisi kimlik doğrulamasını yapılandırın. ConfigureServices'te AddCookie. Diğer ayrıntılar için bkz https://go.microsoft.com/fwlink/?linkid=845470 .

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

Parametreler

app
IApplicationBuilder

IApplicationBuilder İşleyicinin ekleneceği.

options
CookieAuthenticationOptions

CookieAuthenticationOptions İşleyici için seçenekleri belirten bir.

Döndürülenler

İşlem tamamlandıktan sonra bu örneğe başvuru.

Öznitelikler

Şunlara uygulanır

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware Ara yazılımı, tanımlama bilgisi kimlik doğrulaması özelliklerini etkinleştiren belirtilen IApplicationBuilderöğesine ekler.

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

Parametreler

app
IApplicationBuilder

IApplicationBuilder Ara yazılımı eklemek için.

options
CookieAuthenticationOptions

CookieAuthenticationOptions Ara yazılım seçeneklerini belirten bir.

Döndürülenler

İşlem tamamlandıktan sonra bu örneğe başvuru.

Şunlara uygulanır