CookieAppBuilderExtensions.UseCookieAuthentication CookieAppBuilderExtensions.UseCookieAuthentication CookieAppBuilderExtensions.UseCookieAuthentication CookieAppBuilderExtensions.UseCookieAuthentication CookieAppBuilderExtensions.UseCookieAuthentication Method

Definition

Overloads

UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder)

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

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

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

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Adds the CookieAuthenticationMiddleware middleware to the specified IApplicationBuilder, which enables cookie authentication capabilities.

UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder) UseCookieAuthentication(IApplicationBuilder)

Warning

This API is now obsolete.

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookieAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookieAuthentication(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
<Extension()>
Public Function UseCookieAuthentication (app As IApplicationBuilder) As IApplicationBuilder
Parameters
Returns

A reference to this instance after the operation has completed.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Warning

This API is now obsolete.

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookieAuthentication(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);
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
Parameters
Returns

A reference to this instance after the operation has completed.

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

Adds the CookieAuthenticationMiddleware middleware to the specified IApplicationBuilder, which enables cookie authentication capabilities.

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
Parameters
Returns

A reference to this instance after the operation has completed.

Applies to