Exemple #1
0
 public OAuth1(IOAuth1Options options)
 {
     AuthorizeUrl    = options.AuthorizeUrl;
     AccessTokenUrl  = options.AccessTokenUrl;
     ConsumerKey     = options.ConsumerKey;
     ConsumerSecret  = options.ConsumerSecret;
     RequestTokenUri = options.RequestTokenUrl;
     CallbackUrl     = options.CallbackUrl;
     ProcessExtras   = options.ProcessExtras;
 }
 public static Task <IOAuth1Account> AuthenticateTwitterAsync(this SocialAuthManager authManager, IOAuth1Options options, string accountId = null)
 {
     return(authManager.AuthenticateAsync <IOAuth1Account, IOAuth1Options>(SocialAuthManager.GetProviderTypeId(ProviderType.Twitter), options, accountId));
 }
Exemple #3
0
 public static Task <IOAuth1Account> AuthenticateOAuth1Async(this SocialAuthManager manager, string providerTypeId, IOAuth1Options options, string accountId = null)
 {
     return(manager.AuthenticateAsync <IOAuth1Account, IOAuth1Options>(providerTypeId, options, accountId));
 }