Share via


OAuthCreatingTicketContext Class

Definition

Contains information about the login session as well as the user ClaimsIdentity.

public ref class OAuthCreatingTicketContext : Microsoft::AspNetCore::Authentication::BaseContext
public ref class OAuthCreatingTicketContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::OAuth::OAuthOptions ^>
public class OAuthCreatingTicketContext : Microsoft.AspNetCore.Authentication.BaseContext
public class OAuthCreatingTicketContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions>
type OAuthCreatingTicketContext = class
    inherit BaseContext
type OAuthCreatingTicketContext = class
    inherit ResultContext<OAuthOptions>
Public Class OAuthCreatingTicketContext
Inherits BaseContext
Public Class OAuthCreatingTicketContext
Inherits ResultContext(Of OAuthOptions)
Inheritance
OAuthCreatingTicketContext
Inheritance

Constructors

OAuthCreatingTicketContext(AuthenticationTicket, HttpContext, OAuthOptions, HttpClient, OAuthTokenResponse, JObject)

Initializes a new OAuthCreatingTicketContext.

OAuthCreatingTicketContext(AuthenticationTicket, HttpContext, OAuthOptions, HttpClient, OAuthTokenResponse)

Initializes a new OAuthCreatingTicketContext.

OAuthCreatingTicketContext(ClaimsPrincipal, AuthenticationProperties, HttpContext, AuthenticationScheme, OAuthOptions, HttpClient, OAuthTokenResponse, JObject)

Initializes a new OAuthCreatingTicketContext.

OAuthCreatingTicketContext(ClaimsPrincipal, AuthenticationProperties, HttpContext, AuthenticationScheme, OAuthOptions, HttpClient, OAuthTokenResponse, JsonElement)

Initializes a new OAuthCreatingTicketContext.

OAuthCreatingTicketContext(ClaimsPrincipal, AuthenticationProperties, HttpContext, AuthenticationScheme, OAuthOptions, HttpClient, OAuthTokenResponse)

Initializes a new OAuthCreatingTicketContext.

Properties

AccessToken

Gets the access token provided by the authentication service.

Backchannel

Gets the backchannel used to communicate with the provider.

ExpiresIn

Gets the access token expiration time.

HttpContext (Inherited from BaseContext)
HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Identity

Gets the main identity exposed by the authentication ticket. This property returns null when the ticket is null.

Options
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>)
RefreshToken

Gets the refresh token provided by the authentication service.

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>)
Ticket

The AuthenticationTicket that will be created.

TokenResponse

Gets the token response returned by the authentication service.

TokenType

Gets the access token type provided by the authentication service.

User

Gets the JSON-serialized user or an empty JsonElement if it is not available.

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

Examines User, determine if the requisite data is present, and optionally add it to Identity.

RunClaimActions(JObject)
RunClaimActions(JsonElement)

Examines the specified userData, determine if the requisite data is present, and optionally add it to Identity.

Success()

Calls success creating a ticket with the Principal and Properties.

(Inherited from ResultContext<TOptions>)

Applies to