IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddIdentityCookies(AuthenticationBuilder) |
Adds cookie authentication. |
AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>) |
Adds the cookie authentication needed for sign in manager. |
AddIdentityCookies(AuthenticationBuilder)
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>)
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for