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

Update enedis konnector name

parent ebf9c53a
No related branches found
No related tags found
No related merge requests found
Pipeline #5360 passed
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment