CookieExtensions.AddCookie Méthode

Définition

Surcharges

AddCookie(AuthenticationBuilder)

Ajoute l’authentification par cookie à AuthenticationBuilder l’aide du schéma par défaut. Le schéma par défaut est spécifié par AuthenticationScheme.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Ajoute l’authentification par cookie à AuthenticationBuilder l’aide du schéma par défaut. Le schéma par défaut est spécifié par AuthenticationScheme.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

AddCookie(AuthenticationBuilder, String)

Ajoute l’authentification par cookie à l’aide AuthenticationBuilder du schéma spécifié.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Ajoute l’authentification par cookie à l’aide AuthenticationBuilder du schéma spécifié.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)

Ajoute l’authentification par cookie à l’aide AuthenticationBuilder du schéma spécifié.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

AddCookie(AuthenticationBuilder)

Ajoute l’authentification par cookie à AuthenticationBuilder l’aide du schéma par défaut. Le schéma par défaut est spécifié par AuthenticationScheme.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder) As AuthenticationBuilder

Paramètres

Retours

Référence à builder une fois l’opération terminée.

S’applique à

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Ajoute l’authentification par cookie à AuthenticationBuilder l’aide du schéma par défaut. Le schéma par défaut est spécifié par AuthenticationScheme.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Paramètres

configureOptions
Action<CookieAuthenticationOptions>

Délégué pour configurer CookieAuthenticationOptions.

Retours

Référence à builder une fois l’opération terminée.

S’applique à

AddCookie(AuthenticationBuilder, String)

Ajoute l’authentification par cookie à l’aide AuthenticationBuilder du schéma spécifié.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String) As AuthenticationBuilder

Paramètres

authenticationScheme
String

Schéma d'authentification.

Retours

Référence à builder une fois l’opération terminée.

S’applique à

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Ajoute l’authentification par cookie à l’aide AuthenticationBuilder du schéma spécifié.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Paramètres

authenticationScheme
String

Schéma d'authentification.

configureOptions
Action<CookieAuthenticationOptions>

Délégué pour configurer CookieAuthenticationOptions.

Retours

Référence à builder une fois l’opération terminée.

S’applique à

AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)

Ajoute l’authentification par cookie à l’aide AuthenticationBuilder du schéma spécifié.

L’authentification par cookie utilise un cookie HTTP persistant dans le client pour effectuer l’authentification.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Paramètres

authenticationScheme
String

Schéma d'authentification.

displayName
String

Nom complet du gestionnaire d’authentification.

configureOptions
Action<CookieAuthenticationOptions>

Délégué pour configurer CookieAuthenticationOptions.

Retours

Référence à builder une fois l’opération terminée.

S’applique à