From 63e677a865f6e57e934f9e650b8d5fbb9693f7db Mon Sep 17 00:00:00 2001 From: Zherphy <94897491+Zherphy@users.noreply.github.com> Date: Sat, 12 Oct 2024 11:56:10 +0800 Subject: [PATCH] BugFix: modify gitee.go (#15) modify gitee.go param name --- auth/gitee.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/gitee.go b/auth/gitee.go index 62e11b5..cbf7177 100644 --- a/auth/gitee.go +++ b/auth/gitee.go @@ -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"} ) @@ -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"}}