添加google第三方登录,修改中继请求post模式选择
This commit is contained in:
parent
c8521e4931
commit
605102aecf
|
|
@ -809,7 +809,7 @@ func GetThirdPartyAuthUrl(c *gin.Context) {
|
|||
case "google":
|
||||
params := url.Values{}
|
||||
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("scope", "https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile")
|
||||
params.Add("state", stateBase64Str)
|
||||
|
|
|
|||
Loading…
Reference in New Issue