Partager via


IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies Méthode

Définition

Surcharges

AddIdentityCookies(AuthenticationBuilder)

Ajoute l’authentification par cookie.

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

Ajoute l’authentification par cookie nécessaire pour le gestionnaire de connexion.

AddIdentityCookies(AuthenticationBuilder)

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

Ajoute l’authentification par cookie.

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

Paramètres

builder
AuthenticationBuilder

Instance actuelle de AuthenticationBuilder.

Retours

IdentityCookiesBuilder qui peut être utilisé pour configurer les cookies d’identité.

S’applique à

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

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

Ajoute l’authentification par cookie nécessaire pour le gestionnaire de connexion.

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

Paramètres

builder
AuthenticationBuilder

Instance actuelle de AuthenticationBuilder.

configureCookies
Action<IdentityCookiesBuilder>

Action utilisée pour configurer les cookies.

Retours

IdentityCookiesBuilder qui peut être utilisé pour configurer les cookies d’identité.

S’applique à