示例#1
0
 private IAuthenticator Login(string pAuthorizationCode, string pEmail, string pState)
 {
     if (!String.IsNullOrEmpty(pAuthorizationCode))
     {
         return(AuthenticationUtils.GetCredentials(pEmail, pAuthorizationCode, pState));
     }
     else
     {
         IAuthorizationState authorizationState = AuthenticationUtils.GetStoredCredentials(pEmail);
         return(AuthenticationUtils.GetAuthenticatorFromState(authorizationState));
     }
 }