TwitterCreatingTicketContext Class

Definition

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

C#
public class TwitterCreatingTicketContext : Microsoft.AspNetCore.Authentication.Twitter.BaseTwitterContext
C#
public class TwitterCreatingTicketContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions>
Inheritance
TwitterCreatingTicketContext
Inheritance

Constructors

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

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0