Share via


TokenValidatedContext Class

Definition

A context for OnTokenValidated.

public ref class TokenValidatedContext : Microsoft::AspNetCore::Authentication::JwtBearer::BaseJwtBearerContext
public ref class TokenValidatedContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^>
public class TokenValidatedContext : Microsoft.AspNetCore.Authentication.JwtBearer.BaseJwtBearerContext
public class TokenValidatedContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions>
type TokenValidatedContext = class
    inherit BaseJwtBearerContext
type TokenValidatedContext = class
    inherit ResultContext<JwtBearerOptions>
Public Class TokenValidatedContext
Inherits BaseJwtBearerContext
Public Class TokenValidatedContext
Inherits ResultContext(Of JwtBearerOptions)
Inheritance
Inheritance

Constructors

TokenValidatedContext(HttpContext, AuthenticationScheme, JwtBearerOptions)

Initializes a new instance of TokenValidatedContext.

TokenValidatedContext(HttpContext, JwtBearerOptions)

Properties

HandledResponse (Inherited from BaseControlContext)
HttpContext (Inherited from BaseContext)
HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options (Inherited from BaseJwtBearerContext)
Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Principal

Gets or sets the ClaimsPrincipal containing the user claims.

(Inherited from ResultContext<TOptions>)
Properties

Gets or sets the AuthenticationProperties.

(Inherited from ResultContext<TOptions>)
Request (Inherited from BaseContext)
Request

The request.

(Inherited from BaseContext<TOptions>)
Response (Inherited from BaseContext)
Response

The response.

(Inherited from BaseContext<TOptions>)
Result

Gets the AuthenticateResult result.

(Inherited from ResultContext<TOptions>)
Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)
SecurityToken

Gets or sets the validated security token.

Skipped (Inherited from BaseControlContext)
State (Inherited from BaseControlContext)
Ticket

Gets or set the Ticket to return if this event signals it handled the event.

(Inherited from BaseControlContext)

Methods

CheckEventResult(AuthenticateResult) (Inherited from BaseControlContext)
Fail(Exception)

Indicates that there was a failure during authentication.

(Inherited from ResultContext<TOptions>)
Fail(String)

Indicates that there was a failure during authentication.

(Inherited from ResultContext<TOptions>)
HandleResponse()

Discontinue all processing for this request and return to the client. The caller is responsible for generating the full response. Set the Ticket to trigger SignIn.

(Inherited from BaseControlContext)
NoResult()

Indicates that there was no information returned for this authentication scheme.

(Inherited from ResultContext<TOptions>)
SkipToNextMiddleware()

Discontinue processing the request in the current middleware and pass control to the next one. SignIn will not be called.

(Inherited from BaseControlContext)
Success()

Calls success creating a ticket with the Principal and Properties.

(Inherited from ResultContext<TOptions>)

Applies to