コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: AuthManager.cs プロジェクト: christav/GHSprintTrax
 private static Authorization CreateSprintStatAuthorization(AuthorizationService authService)
 {
     Authorization auth = authService.CreateAuthorization(note: GithubAuthNote,
         scopes: new[] {"repo", "public_repo", "repo:status"});
     return auth;
 }