Share via


MessageReceivedContext Class

Definition

The context object used for MessageReceived(MessageReceivedContext).

public ref class MessageReceivedContext : Microsoft::AspNetCore::Authentication::RemoteAuthenticationContext<Microsoft::AspNetCore::Authentication::WsFederation::WsFederationOptions ^>
public class MessageReceivedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext<Microsoft.AspNetCore.Authentication.WsFederation.WsFederationOptions>
type MessageReceivedContext = class
    inherit RemoteAuthenticationContext<WsFederationOptions>
Public Class MessageReceivedContext
Inherits RemoteAuthenticationContext(Of WsFederationOptions)
Inheritance

Constructors

MessageReceivedContext(HttpContext, AuthenticationScheme, WsFederationOptions, AuthenticationProperties)

Creates a new context object.

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.

(Inherited from RemoteAuthenticationContext<TOptions>)
Properties

Gets or sets the AuthenticationProperties.

(Inherited from RemoteAuthenticationContext<TOptions>)
ProtocolMessage

The WsFederationMessage received on this request.

Request

The request.

(Inherited from BaseContext<TOptions>)
Response

The response.

(Inherited from BaseContext<TOptions>)
Result

The HandleRequestResult which is used by the handler.

(Inherited from HandleRequestContext<TOptions>)
Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)

Methods

Fail(Exception)

Indicates that authentication failed.

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

Indicates that authentication failed.

(Inherited from RemoteAuthenticationContext<TOptions>)
HandleResponse()

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

(Inherited from HandleRequestContext<TOptions>)
SkipHandler()

Discontinue processing the request in the current handler.

(Inherited from HandleRequestContext<TOptions>)
Success()

Calls success creating a ticket with the Principal and Properties.

(Inherited from RemoteAuthenticationContext<TOptions>)

Applies to