diff --git a/main.go b/main.go index 365422968667a661caf01c5989cfbe5d0cef93a1..3fe299054554516abe62917812ec3518d36e095a 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) }