MessageReceivedContext Class

Definition

A context for OnMessageReceived.

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

Constructors

MessageReceivedContext(HttpContext, AuthenticationScheme, JwtBearerOptions)

Initializes a new instance of MessageReceivedContext.

MessageReceivedContext(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>)
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)
Token

Bearer Token. This will give the application an opportunity to retrieve a token from an alternative location.

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