CookieExtensions.AddCookie Methode

Definition

Überlädt

AddCookie(AuthenticationBuilder)

Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben.

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben.

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

AddCookie(AuthenticationBuilder, String)

Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

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

Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

AddCookie(AuthenticationBuilder)

Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben.

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

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

Parameter

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben.

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

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

Parameter

configureOptions
Action<CookieAuthenticationOptions>

Ein Delegat zum Konfigurieren CookieAuthenticationOptionsvon .

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

AddCookie(AuthenticationBuilder, String)

Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

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

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

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

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

configureOptions
Action<CookieAuthenticationOptions>

Ein Delegat zum Konfigurieren CookieAuthenticationOptionsvon .

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

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

Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .

Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.

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

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

displayName
String

Ein Anzeigename für den Authentifizierungshandler.

configureOptions
Action<CookieAuthenticationOptions>

Ein Delegat zum Konfigurieren CookieAuthenticationOptionsvon .

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für: