PrincipalContext<TOptions> Klasse

Definition

Basiskontext für Authentifizierungsereignisse, die sich mit einem ClaimsPrincipal befassen.

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)

Typparameter

TOptions
Vererbung
Abgeleitet

Konstruktoren

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

Konstruktor.

Eigenschaften

HttpContext

Der Kontext.

(Geerbt von BaseContext<TOptions>)
Options

Ruft die dem Schema zugeordneten Authentifizierungsoptionen ab.

(Geerbt von BaseContext<TOptions>)
Principal

Ruft die ab, die ClaimsPrincipal die Benutzeransprüche enthält.

Properties

Ruft den AuthenticationProperties ab oder legt diesen fest.

(Geerbt von PropertiesContext<TOptions>)
Request

Die Anforderung.

(Geerbt von BaseContext<TOptions>)
Response

Die Antwort.

(Geerbt von BaseContext<TOptions>)
Scheme

Das Authentifizierungsschema.

(Geerbt von BaseContext<TOptions>)

Gilt für: