From 02e6a3f2670032959cac900decd3610d5cad2a84 Mon Sep 17 00:00:00 2001 From: Yoan VALLET <ext.sopra.yvallet@grandlyon.com> Date: Mon, 25 May 2020 09:31:07 +0200 Subject: [PATCH] Update main.go - redirect uri in auth endpoint --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b7cd276..e68eb06 100644 --- a/main.go +++ b/main.go @@ -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 -- GitLab