CookieExtensions.AddCookie Método

Definición

Sobrecargas

AddCookie(AuthenticationBuilder)

Agrega la autenticación de cookies al AuthenticationBuilder uso del esquema predeterminado. El esquema predeterminado se especifica mediante AuthenticationScheme.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Agrega la autenticación de cookies al AuthenticationBuilder uso del esquema predeterminado. El esquema predeterminado se especifica mediante AuthenticationScheme.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

AddCookie(AuthenticationBuilder, String)

Agrega autenticación de cookies al AuthenticationBuilder uso del esquema especificado.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Agrega autenticación de cookies al AuthenticationBuilder uso del esquema especificado.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

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

Agrega autenticación de cookies al AuthenticationBuilder uso del esquema especificado.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

AddCookie(AuthenticationBuilder)

Agrega la autenticación de cookies al AuthenticationBuilder uso del esquema predeterminado. El esquema predeterminado se especifica mediante AuthenticationScheme.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

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

Parámetros

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Agrega la autenticación de cookies al AuthenticationBuilder uso del esquema predeterminado. El esquema predeterminado se especifica mediante AuthenticationScheme.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

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

Parámetros

configureOptions
Action<CookieAuthenticationOptions>

Delegado para configurar CookieAuthenticationOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddCookie(AuthenticationBuilder, String)

Agrega autenticación de cookies al AuthenticationBuilder uso del esquema especificado.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

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

Parámetros

authenticationScheme
String

Esquema de autenticación.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Agrega autenticación de cookies al AuthenticationBuilder uso del esquema especificado.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

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

Parámetros

authenticationScheme
String

Esquema de autenticación.

configureOptions
Action<CookieAuthenticationOptions>

Delegado para configurar CookieAuthenticationOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

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

Agrega autenticación de cookies al AuthenticationBuilder uso del esquema especificado.

La autenticación de cookies usa una cookie HTTP persistente en el cliente para realizar la autenticación.

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

Parámetros

authenticationScheme
String

Esquema de autenticación.

displayName
String

Nombre para mostrar del controlador de autenticación.

configureOptions
Action<CookieAuthenticationOptions>

Delegado para configurar CookieAuthenticationOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a