Ejemplo n.º 1
0
 public AuthorizedUserApplicationDefaultCredentials(ApplicationDefaultCredentials applicationDefaultCredentials)
 {
     ClientId     = new OAuth.ClientID(applicationDefaultCredentials.Content["client_id"]);
     ClientSecret = new OAuth.ClientSecret(applicationDefaultCredentials.Content["client_secret"]);
     RefreshToken = new OAuth.RefreshToken(applicationDefaultCredentials.Content["refresh_token"]);
     Type         = AuthorizedUser;
 }
Ejemplo n.º 2
0
 public AuthorizedUserApplicationDefaultCredentials(OAuth.ClientID clientId, OAuth.ClientSecret clientSecret, OAuth.RefreshToken refreshToken)
 {
     ClientId     = clientId;
     ClientSecret = clientSecret;
     RefreshToken = refreshToken;
     Type         = AuthorizedUser;
 }