From e48be2d28ca696bdd4a1474722b48be15cb8fa0c Mon Sep 17 00:00:00 2001 From: Yoan VALLET <ext.sopra.yvallet@grandlyon.com> Date: Thu, 14 May 2020 17:46:58 +0200 Subject: [PATCH] Update enedis konnector name --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 3654229..3fe2990 100644 --- a/main.go +++ b/main.go @@ -17,9 +17,9 @@ var ( ) type TokenResponse struct { - AccessToken string `json:"access_token"` + AccessToken string `json:"access_token"` TokenType string `json:"token_type"` - ExpiresIn int `json:"expires_in"` + ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` Scope string `json:"scope"` RefreshTokenIssuedAt string `json:"refresh_token_issued_at"` @@ -102,7 +102,7 @@ func main() { state := strings.Split(pageState, "-")[0] host := strings.Split(pageState, "-")[1] - redir := "https://" + host + "/accounts/enedisoauth/redirect?code=" + pageCode + "&state="+ state +"&usage_point_id=" + pageUsage + redir := "https://" + host + "/accounts/enedis-konnector/redirect?code=" + pageCode + "&state="+ state +"&usage_point_id=" + pageUsage fmt.Println(redir) http.Redirect(w, r, redir, 302) } -- GitLab