public static Task <IOAuth1Account> AuthenticateTwitterAsync(this SocialAuthManager authManager, IOAuth1Options options, string accountId = null)
 {
     return(authManager.AuthenticateAsync <IOAuth1Account, IOAuth1Options>(SocialAuthManager.GetProviderTypeId(ProviderType.Twitter), options, accountId));
 }
Пример #2
0
 public void UnregisterProvider(ProviderType providerType)
 {
     UnregisterProvider(SocialAuthManager.GetProviderTypeId(providerType));
 }
 public IAccount FindAnyAccount(ProviderType providerType)
 {
     return(FindAnyAccount(SocialAuthManager.GetProviderTypeId(providerType)));
 }
 public IEnumerable <IAccount> FindAccounts(ProviderType providerType)
 {
     return(FindAccounts(SocialAuthManager.GetProviderTypeId(providerType)));
 }
Пример #5
0
 public static Task <IOAuth1Account> AuthenticateOAuth1Async(this SocialAuthManager manager, string providerTypeId, IOAuth1Options options, string accountId = null)
 {
     return(manager.AuthenticateAsync <IOAuth1Account, IOAuth1Options>(providerTypeId, options, accountId));
 }
 public static Task <IFacebookAccount> AuthenticateFacebookAsync(this SocialAuthManager manager, IFacebookAuthOptions options, string accountId = null)
 {
     return(manager.AuthenticateAsync <IFacebookAccount, IFacebookAuthOptions>(ProviderType.Facebook, options, accountId));
 }
 public static Task LogoutFacebookAsync(this SocialAuthManager manager, IFacebookAccount account)
 {
     return(manager.LogoutAsync <IFacebookAccount, IFacebookAuthOptions>(ProviderType.Facebook, account));
 }
 public static Task <IGoogleAccount> AuthenticateGoogleAsync(this SocialAuthManager manager, IGoogleAuthOptions options, string accountId = null)
 {
     return(manager.AuthenticateAsync <IGoogleAccount, IGoogleAuthOptions>(ProviderType.Google, options, accountId));
 }
 public static Task LogoutGoogleAsync(this SocialAuthManager manager, IGoogleAccount account)
 {
     return(manager.LogoutAsync <IGoogleAccount, IGoogleAuthOptions>(ProviderType.Google, account));
 }