// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Security.Claims; using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Authentication; namespace Microsoft.AspNet.Authentication.Twitter { /// /// Contains information about the login session as well as the user . /// public class TwitterCreatingTicketContext : BaseTwitterContext { /// /// Initializes a /// /// The HTTP environment /// Twitter user ID /// Twitter screen name /// Twitter access token /// Twitter access token secret public TwitterCreatingTicketContext( HttpContext context, TwitterOptions options, string userId, string screenName, string accessToken, string accessTokenSecret) : base(context, options) { UserId = userId; ScreenName = screenName; AccessToken = accessToken; AccessTokenSecret = accessTokenSecret; } /// /// Gets the Twitter user ID /// public string UserId { get; private set; } /// /// Gets the Twitter screen name /// public string ScreenName { get; private set; } /// /// Gets the Twitter access token /// public string AccessToken { get; private set; } /// /// Gets the Twitter access token secret /// public string AccessTokenSecret { get; private set; } /// /// Gets the representing the user /// public ClaimsPrincipal Principal { get; set; } /// /// Gets or sets a property bag for common authentication properties /// public AuthenticationProperties Properties { get; set; } } }