fix: use server address as redirect url
This commit is contained in:
parent
438daea433
commit
0c70181f81
@ -35,8 +35,8 @@ func getGoogleUserInfoByCode(codeFromURLParamaters string, host string) (*Google
|
|||||||
RequestClient := &http.Client{}
|
RequestClient := &http.Client{}
|
||||||
|
|
||||||
accessTokenBody := bytes.NewBuffer([]byte(fmt.Sprintf(
|
accessTokenBody := bytes.NewBuffer([]byte(fmt.Sprintf(
|
||||||
"code=%s&client_id=%s&client_secret=%s&redirect_uri=https://%s/oauth/google&grant_type=authorization_code",
|
"code=%s&client_id=%s&client_secret=%s&redirect_uri=%s/oauth/google&grant_type=authorization_code",
|
||||||
codeFromURLParamaters, common.GoogleClientId, common.GoogleClientSecret, host,
|
codeFromURLParamaters, common.GoogleClientId, common.GoogleClientSecret, common.ServerAddress,
|
||||||
)))
|
)))
|
||||||
|
|
||||||
req, _ := http.NewRequest("POST",
|
req, _ := http.NewRequest("POST",
|
||||||
|
Loading…
Reference in New Issue
Block a user