CookieValidatePrincipalContext Classe

Définition

Objet de contexte passé à la méthode ValidatePrincipal CookieAuthenticationEvents.

public ref class CookieValidatePrincipalContext : Microsoft::AspNetCore::Authentication::Cookies::BaseCookieContext
public ref class CookieValidatePrincipalContext : Microsoft::AspNetCore::Authentication::PrincipalContext<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^>
public class CookieValidatePrincipalContext : Microsoft.AspNetCore.Authentication.Cookies.BaseCookieContext
public class CookieValidatePrincipalContext : Microsoft.AspNetCore.Authentication.PrincipalContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>
type CookieValidatePrincipalContext = class
    inherit BaseCookieContext
type CookieValidatePrincipalContext = class
    inherit PrincipalContext<CookieAuthenticationOptions>
Public Class CookieValidatePrincipalContext
Inherits BaseCookieContext
Public Class CookieValidatePrincipalContext
Inherits PrincipalContext(Of CookieAuthenticationOptions)
Héritage
CookieValidatePrincipalContext
Héritage

Constructeurs

CookieValidatePrincipalContext(HttpContext, AuthenticationScheme, CookieAuthenticationOptions, AuthenticationTicket)

Crée une instance de l'objet de contexte.

CookieValidatePrincipalContext(HttpContext, AuthenticationTicket, CookieAuthenticationOptions)

Crée une instance de l'objet de contexte.

Propriétés

HttpContext

Objet de contexte passé à la méthode ValidatePrincipal CookieAuthenticationEvents.

(Hérité de BaseContext)
HttpContext

Contexte.

(Hérité de BaseContext<TOptions>)
Options

Objet de contexte passé à la méthode ValidatePrincipal CookieAuthenticationEvents.

(Hérité de BaseCookieContext)
Options

Obtient les options d’authentification associées au schéma.

(Hérité de BaseContext<TOptions>)
Principal

Contient le principal de revendications arrivant avec la demande. Peut être modifié pour changer les détails de l'utilisateur authentifié.

Principal

Obtient le ClaimsPrincipal contenant les revendications utilisateur.

(Hérité de PrincipalContext<TOptions>)
Properties

Contient les métadonnées supplémentaires arrivant avec le ticket de demande. Peut être modifié.

Properties

Obtient ou définit AuthenticationProperties.

(Hérité de PropertiesContext<TOptions>)
Request

Objet de contexte passé à la méthode ValidatePrincipal CookieAuthenticationEvents.

(Hérité de BaseContext)
Request

Demande.

(Hérité de BaseContext<TOptions>)
Response

Objet de contexte passé à la méthode ValidatePrincipal CookieAuthenticationEvents.

(Hérité de BaseContext)
Response

La réponse.

(Hérité de BaseContext<TOptions>)
Scheme

Schéma d'authentification.

(Hérité de BaseContext<TOptions>)
ShouldRenew

Si la valeur est true, le cookie est renouvelé

Méthodes

RejectPrincipal()

Appelé pour rejeter le principal entrant. Cela peut se produire si l'application a déterminé que le compte n'est plus actif et que la demande doit être traitée comme si elle était anonyme.

ReplacePrincipal(ClaimsPrincipal)

Appelé pour remplacer le principal des revendications. Le principal fourni remplace la valeur de la propriété Principal, qui détermine l’identité de la demande authentifiée.

S’applique à