PrincipalContext<TOptions> PrincipalContext<TOptions> PrincipalContext<TOptions> Class

Definition

Base context for authentication events which deal with a ClaimsPrincipal.

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

Constructors

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

Constructor.

Properties

HttpContext HttpContext HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options Options Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Principal Principal Principal

Gets the ClaimsPrincipal containing the user claims.

Properties Properties Properties

Gets or sets the AuthenticationProperties.

(Inherited from PropertiesContext<TOptions>)
Request Request Request

The request.

(Inherited from BaseContext<TOptions>)
Response Response Response

The response.

(Inherited from BaseContext<TOptions>)
Scheme Scheme Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)

Applies to