添加google第三方登录,修改中继请求post模式选择

This commit is contained in:
junleea 2025-04-30 16:13:44 +08:00
parent c8521e4931
commit 605102aecf
1 changed files with 1 additions and 1 deletions

View File

@ -809,7 +809,7 @@ func GetThirdPartyAuthUrl(c *gin.Context) {
case "google": case "google":
params := url.Values{} params := url.Values{}
params.Add("client_id", worker.GoogleClientID) params.Add("client_id", worker.GoogleClientID)
params.Add("response_type", "token") //直接返回token params.Add("response_type", "code") //直接返回token
params.Add("redirect_uri", "https://pm.ljsea.top/tool/third_party_callback") params.Add("redirect_uri", "https://pm.ljsea.top/tool/third_party_callback")
params.Add("scope", "https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile") params.Add("scope", "https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile")
params.Add("state", stateBase64Str) params.Add("state", stateBase64Str)