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

Change URL to production

parent 02e6a3f2
Branches
No related tags found
No related merge requests found
Pipeline #5579 passed
...@@ -45,7 +45,7 @@ func main() { ...@@ -45,7 +45,7 @@ func main() {
redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/redirect" redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/redirect"
responseType := "code" 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 authReq := "https://mon-compte-particulier.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)
...@@ -180,7 +180,7 @@ func main() { ...@@ -180,7 +180,7 @@ func main() {
fmt.Printf("grant_type: %s\n", grantType) fmt.Printf("grant_type: %s\n", grantType)
fmt.Printf("refresh_token: %s\n", refreshToken) fmt.Printf("refresh_token: %s\n", refreshToken)
tokenUrl := "https://gw.hml.api.enedis.fr/v1/oauth2/token" tokenUrl := "https://gw.prd.api.enedis.fr/v1/oauth2/token"
data := url.Values{} data := url.Values{}
data.Set("client_id", clientId) data.Set("client_id", clientId)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment