Share via


PrincipalContext<TOptions> Class

Definition

Base context for authentication events which deal with a 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)

Type Parameters

TOptions
Inheritance
Derived

Constructors

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

Constructor.

Properties

HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Principal

Gets the ClaimsPrincipal containing the user claims.

Properties

Gets or sets the AuthenticationProperties.

(Inherited from PropertiesContext<TOptions>)
Request

The request.

(Inherited from BaseContext<TOptions>)
Response

The response.

(Inherited from BaseContext<TOptions>)
Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)

Applies to