public Authorization GetAuthorization(string username, string password)
 {
     if (authorization == null)
     {
         authService = new AuthorizationService(username, password);
         authorization = authService.CreateAuthorization("testGHTestSuite",
             scopes: new[] {"user", "repo"});
     }
     return authorization;
 }
Exemple #2
0
 private static Authorization CreateSprintStatAuthorization(AuthorizationService authService)
 {
     Authorization auth = authService.CreateAuthorization(note: GithubAuthNote,
         scopes: new[] {"repo", "public_repo", "repo:status"});
     return auth;
 }