Skip to content
Snippets Groups Projects
Commit 02e6a3f2 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

Update main.go - redirect uri in auth endpoint

parent f9f119a0
No related branches found
No related tags found
No related merge requests found
Pipeline #5496 passed
......@@ -42,7 +42,7 @@ func main() {
clientId := query.Get("client_id")
state := query.Get("state")
cozyOrigin := query.Get("redirect_uri") // here we use the redirect_uri param to transmit our stack url
redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/"
redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/redirect"
responseType := "code"
authReq := "https://gw.hml.api.enedis.fr/dataconnect/v1/oauth2/authorize?client_id="+ clientId +"&duration=P6M&redirect_uri="+ redirectUri +"&response_type="+ responseType +"&state="+ state +"-"+ cozyOrigin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment