Skip to content

Commit

Permalink
BugFix: modify gitee.go (#15)
Browse files Browse the repository at this point in the history
modify gitee.go param name
  • Loading branch information
Zherphy authored Oct 12, 2024
1 parent 102f6d6 commit 63e677a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auth/gitee.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
)

var (
allowedRepos = []string{"openeuler", "src-openeuler"}
allowedRepos = []string{"openeuler", "src-openeuler", "lfs-org"}
uploadPermissions = []string{"admin", "developer"}
downloadPermissions = []string{"admin", "developer", "read"}
)
Expand Down Expand Up @@ -127,8 +127,8 @@ func getToken(username, password string) (string, error) {
form.Add("grant_type", "password")
form.Add("username", username)
form.Add("password", password)
form.Add("clientId", clientId)
form.Add("clientSecret", clientSecret)
form.Add("client_id", clientId)
form.Add("client_secret", clientSecret)

path := "https://gitee.com/oauth/token"
headers := http.Header{"Content-Type": []string{"application/x-www-form-urlencoded"}}
Expand Down

0 comments on commit 63e677a

Please sign in to comment.