TwitterCreatingTicketContext Class

Contains information about the login session as well as the user System.Security.Claims.ClaimsIdentity.

Namespace
Microsoft.AspNetCore.Authentication.Twitter
Assemblies
  • Microsoft.AspNetCore.Authentication.Twitter

Syntax

public class TwitterCreatingTicketContext : BaseTwitterContext
class Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext

Constructors

TwitterCreatingTicketContext(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Builder.TwitterOptions, System.String, System.String, System.String, System.String, Newtonsoft.Json.Linq.JObject)

Initializes a Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext

Arguments:
  • context (Microsoft.AspNetCore.Http.HttpContext) – The HTTP environment
  • options (Microsoft.AspNetCore.Builder.TwitterOptions) – The options for Twitter
  • userId (System.String) – Twitter user ID
  • screenName (System.String) – Twitter screen name
  • accessToken (System.String) – Twitter access token
  • accessTokenSecret (System.String) – Twitter access token secret
  • user (Newtonsoft.Json.Linq.JObject) – User details
public TwitterCreatingTicketContext(HttpContext context, TwitterOptions options, string userId, string screenName, string accessToken, string accessTokenSecret, JObject user)

Properties

Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext.AccessToken

Gets the Twitter access token

Return type:System.String
public string AccessToken { get; }
Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext.AccessTokenSecret

Gets the Twitter access token secret

Return type:System.String
public string AccessTokenSecret { get; }
Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext.Principal

Gets the System.Security.Claims.ClaimsPrincipal representing the user

Return type:System.Security.Claims.ClaimsPrincipal
public ClaimsPrincipal Principal { get; set; }
Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext.Properties

Gets or sets a property bag for common authentication properties

Return type:Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
public AuthenticationProperties Properties { get; set; }
Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext.ScreenName

Gets the Twitter screen name

Return type:System.String
public string ScreenName { get; }
Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext.User

Gets the JSON-serialized user or an empty Newtonsoft.Json.Linq.JObject if it is not available.

Return type:Newtonsoft.Json.Linq.JObject
public JObject User { get; }
Microsoft.AspNetCore.Authentication.Twitter.TwitterCreatingTicketContext.UserId

Gets the Twitter user ID

Return type:System.String
public string UserId { get; }