Delen via


SecurityTokenReceivedContext Class

Definition

This Context can be used to be informed when an 'AuthorizationCode' is redeemed for tokens at the token endpoint.

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

Constructors

SecurityTokenReceivedContext(HttpContext, AuthenticationScheme, WsFederationOptions, AuthenticationProperties)

Creates a SecurityTokenReceivedContext

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