IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies Method

Definition

Overloads

AddIdentityCookies(AuthenticationBuilder)

Adds cookie authentication.

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

Adds the cookie authentication needed for sign in manager.

AddIdentityCookies(AuthenticationBuilder)

Source:
IdentityCookiesBuilderExtensions.cs
Source:
IdentityCookiesBuilderExtensions.cs
Source:
IdentityCookiesBuilderExtensions.cs

Adds cookie authentication.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityCookiesBuilder ^ AddIdentityCookies(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder);
public static Microsoft.AspNetCore.Identity.IdentityCookiesBuilder AddIdentityCookies (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddIdentityCookies : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Identity.IdentityCookiesBuilder
<Extension()>
Public Function AddIdentityCookies (builder As AuthenticationBuilder) As IdentityCookiesBuilder

Parameters

builder
AuthenticationBuilder

The current AuthenticationBuilder instance.

Returns

The IdentityCookiesBuilder which can be used to configure the identity cookies.

Applies to

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

Source:
IdentityCookiesBuilderExtensions.cs
Source:
IdentityCookiesBuilderExtensions.cs
Source:
IdentityCookiesBuilderExtensions.cs

Adds the cookie authentication needed for sign in manager.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityCookiesBuilder ^ AddIdentityCookies(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, Action<Microsoft::AspNetCore::Identity::IdentityCookiesBuilder ^> ^ configureCookies);
public static Microsoft.AspNetCore.Identity.IdentityCookiesBuilder AddIdentityCookies (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Identity.IdentityCookiesBuilder> configureCookies);
static member AddIdentityCookies : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Identity.IdentityCookiesBuilder> -> Microsoft.AspNetCore.Identity.IdentityCookiesBuilder
<Extension()>
Public Function AddIdentityCookies (builder As AuthenticationBuilder, configureCookies As Action(Of IdentityCookiesBuilder)) As IdentityCookiesBuilder

Parameters

builder
AuthenticationBuilder

The current AuthenticationBuilder instance.

configureCookies
Action<IdentityCookiesBuilder>

Action used to configure the cookies.

Returns

The IdentityCookiesBuilder which can be used to configure the identity cookies.

Applies to