TwitterCreatingTicketContext Class

Definition

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

public ref class TwitterCreatingTicketContext : Microsoft::AspNetCore::Authentication::Twitter::BaseTwitterContext
public ref class TwitterCreatingTicketContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::Twitter::TwitterOptions ^>
public class TwitterCreatingTicketContext : Microsoft.AspNetCore.Authentication.Twitter.BaseTwitterContext
public class TwitterCreatingTicketContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions>
type TwitterCreatingTicketContext = class
    inherit BaseTwitterContext
type TwitterCreatingTicketContext = class
    inherit ResultContext<TwitterOptions>
Public Class TwitterCreatingTicketContext
Inherits BaseTwitterContext
Public Class TwitterCreatingTicketContext
Inherits ResultContext(Of TwitterOptions)
Inheritance
TwitterCreatingTicketContext
Inheritance

Constructors

TwitterCreatingTicketContext(HttpContext, AuthenticationScheme, TwitterOptions, ClaimsPrincipal, AuthenticationProperties, String, String, String, String, JObject)

Initializes a TwitterCreatingTicketContext

TwitterCreatingTicketContext(HttpContext, AuthenticationScheme, TwitterOptions, ClaimsPrincipal, AuthenticationProperties, String, String, String, String, JsonElement)

Initializes a TwitterCreatingTicketContext

TwitterCreatingTicketContext(HttpContext, TwitterOptions, String, String, String, String, JObject)

Initializes a TwitterCreatingTicketContext

Properties

AccessToken

Gets the Twitter access token

AccessTokenSecret

Gets the Twitter access token secret

HttpContext (Inherited from BaseContext)
HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options (Inherited from BaseTwitterContext)
Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Principal

Gets the ClaimsPrincipal representing the user

Principal

Gets or sets the ClaimsPrincipal containing the user claims.

(Inherited from ResultContext<TOptions>)
Properties

Gets or sets a property bag for common authentication properties

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

Gets the Twitter screen name

User

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

UserId

Gets the Twitter user ID

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