MessageReceivedContext Class

Definition

A context for OnMessageReceived.

public class MessageReceivedContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions>
type MessageReceivedContext = class
    inherit ResultContext<BearerTokenOptions>
Public Class MessageReceivedContext
Inherits ResultContext(Of BearerTokenOptions)
Inheritance

Constructors

MessageReceivedContext(HttpContext, AuthenticationScheme, BearerTokenOptions)

Initializes a new instance of MessageReceivedContext.

Properties

HttpContext

The context.

(Inherited from BaseContext<TOptions>)
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

The request.

(Inherited from BaseContext<TOptions>)
Response

The response.

(Inherited from BaseContext<TOptions>)
Result

Gets the AuthenticateResult result.

(Inherited from ResultContext<TOptions>)
Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)
Token

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

Methods

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>)
NoResult()

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

(Inherited from ResultContext<TOptions>)
Success()

Calls success creating a ticket with the Principal and Properties.

(Inherited from ResultContext<TOptions>)

Applies to