Share via


PrincipalContext<TOptions> Classe

Définition

Contexte de base pour les événements d’authentification qui traitent un ClaimsPrincipal.

generic <typename TOptions>
 where TOptions : AuthenticationSchemeOptionspublic ref class PrincipalContext abstract : Microsoft::AspNetCore::Authentication::PropertiesContext<TOptions>
public abstract class PrincipalContext<TOptions> : Microsoft.AspNetCore.Authentication.PropertiesContext<TOptions> where TOptions : AuthenticationSchemeOptions
type PrincipalContext<'Options (requires 'Options :> AuthenticationSchemeOptions)> = class
    inherit PropertiesContext<'Options (requires 'Options :> AuthenticationSchemeOptions)>
Public MustInherit Class PrincipalContext(Of TOptions)
Inherits PropertiesContext(Of TOptions)

Paramètres de type

TOptions
Héritage
Dérivé

Constructeurs

PrincipalContext<TOptions>(HttpContext, AuthenticationScheme, TOptions, AuthenticationProperties)

Constructeur.

Propriétés

HttpContext

Contexte.

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

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

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

Obtient le ClaimsPrincipal contenant les revendications de l’utilisateur.

Properties

Obtient ou définit AuthenticationProperties.

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

Demande.

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

La réponse.

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

Schéma d'authentification.

(Hérité de BaseContext<TOptions>)

S’applique à