Beispiel #1
0
 public OAuth2(IOAuth2Options options) : this()
 {
     AuthorizeUrl   = options.AuthorizeUrl;
     AccessTokenUrl = options.AccessTokenUrl;
     ClientId       = options.ClientId;
     ClientSecret   = options.ClientSecret;
     Scope          = options.Scope;
     RedirectUrl    = options.RedirectUrl;
     SendAccessTokenRequestAuthHeader = options.SendAccessTokenRequestAuthHeader;
     ProcessExtras = options.ProcessExtras;
 }
Beispiel #2
0
 public static Task <IOAuth2Account> AuthenticateOAuth2Async(this SocialAuthManager manager, ProviderType providerType, IOAuth2Options options, string accountId = null)
 {
     return(manager.AuthenticateAsync <IOAuth2Account, IOAuth2Options>(providerType, options, accountId));
 }