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

update enedis authorize endpoint to V1

parent 2b8316d7
Branches
No related tags found
No related merge requests found
Pipeline #5451 passed
...@@ -45,7 +45,7 @@ func main() { ...@@ -45,7 +45,7 @@ func main() {
redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/" redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/"
responseType := "code" 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) fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "- Send request to auth endpoint", authReq)
response, err := http.Get(authReq) response, err := http.Get(authReq)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment