From 70427b9842391f9aba442040e84795c98fdb69c6 Mon Sep 17 00:00:00 2001 From: Yoan VALLET <ext.sopra.yvallet@grandlyon.com> Date: Wed, 20 May 2020 10:32:50 +0200 Subject: [PATCH] update enedis authorize endpoint to V1 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4f482b0..cfe564a 100644 --- a/main.go +++ b/main.go @@ -45,7 +45,7 @@ func main() { redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/" responseType := "code" - authReq := "https://gw.hml.api.enedis.fr/group/espace-particuliers/consentement-linky/oauth2/authorize?client_id="+ clientId +"&duration=P6M&redirect_uri="+ redirectUri +"&response_type="+ responseType +"&state="+ state +"-"+ cozyOrigin + 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 fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "- Send request to auth endpoint", authReq) response, err := http.Get(authReq) -- GitLab