Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TwitterOptions"/> class.
 /// </summary>
 public TwitterOptions()
 {
     AuthenticationScheme = TwitterDefaults.AuthenticationScheme;
     DisplayName = AuthenticationScheme;
     CallbackPath = new PathString("/signin-twitter");
     BackchannelTimeout = TimeSpan.FromSeconds(60);
     Events = new TwitterEvents();
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TwitterOptions"/> class.
        /// </summary>
        public TwitterOptions()
        {
            CallbackPath       = new PathString("/signin-twitter");
            BackchannelTimeout = TimeSpan.FromSeconds(60);
            Events             = new TwitterEvents();

            ClaimActions.MapJsonKey(ClaimTypes.Email, "email", ClaimValueTypes.Email);

            _stateCookieBuilder = new TwitterCookieBuilder(this)
            {
                Name         = DefaultStateCookieName,
                SecurePolicy = CookieSecurePolicy.SameAsRequest,
                HttpOnly     = true,
                SameSite     = SameSiteMode.Lax,
            };
        }