B: Redirect URI
This commit is contained in:
parent
4866071689
commit
d36eb955ab
|
@ -77,7 +77,7 @@ func ReceiveYoutubeOauth(c *gin.Context) {
|
||||||
q.Add("code", code)
|
q.Add("code", code)
|
||||||
q.Add("client_id", conf.YoutubeConfig.ClientId)
|
q.Add("client_id", conf.YoutubeConfig.ClientId)
|
||||||
q.Add("client_secret", conf.YoutubeConfig.ClientSecret)
|
q.Add("client_secret", conf.YoutubeConfig.ClientSecret)
|
||||||
q.Add("redirect_uri", "https://capstone.preston-baxter.com:8080/dashboard")
|
q.Add("redirect_uri", REDIRECT_URI)
|
||||||
q.Add("grant_type", "authorization_code")
|
q.Add("grant_type", "authorization_code")
|
||||||
|
|
||||||
req, err := http.NewRequest("POST", token_url.String(), strings.NewReader(q.Encode()))
|
req, err := http.NewRequest("POST", token_url.String(), strings.NewReader(q.Encode()))
|
||||||
|
|
Loading…
Reference in New Issue