Skip to content

Commit

Permalink
Gitee support
Browse files Browse the repository at this point in the history
Signed-off-by: M Hickford <[email protected]>
  • Loading branch information
hickford committed Jan 22, 2023
1 parent d256599 commit 3bb0717
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ var configByHost = map[string]oauth2.Config{
ClientSecret: "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",
Endpoint: endpoints.Google,
Scopes: []string{"https://www.googleapis.com/auth/gerritcodereview"}},
"gitee.com": {
ClientID: "b5da229f85d94f5d728c43e429c69527fe2dcc387d4ffcb677b91c93983adaa3",
ClientSecret: "a9f88c722f66e54184204efa0f49b960f2666947e0b14bd0d73a8c9c1c33c340",
Scopes: []string{"projects", "gists"},
Endpoint: oauth2.Endpoint{AuthURL: "https://gitee.com/oauth/authorize", TokenURL: "https://codeberg.org/login/oauth/access_token"},
// server confused by random ports
RedirectURL: "http://127.0.0.1:53119"},
}

var (
Expand Down

0 comments on commit 3bb0717

Please sign in to comment.