Skip to content
Snippets Groups Projects
Commit 11e96890 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

Merge branch 'feat/US768-consent-duration' into 'master'

Feat/us768 consent duration

See merge request pocs/cozy/cozy-oauth-proxy!8
parents b6206c07 a679a440
No related branches found
No related tags found
1 merge request!8Feat/us768 consent duration
Pipeline #46663 passed
......@@ -2,6 +2,7 @@ version: "2.4"
services:
cozy-oauth-proxy:
#image: registry.forge.grandlyon.com/pocs/cozy/cozy-oauth-proxy:latest
image: registry.forge.grandlyon.com/pocs/cozy/cozy-oauth-proxy
# image: cozy-oauth-proxy
container_name: cozy-oauth-proxy
......@@ -13,3 +14,8 @@ services:
- /etc/localtime:/etc/localtime:ro
ports:
- 8081:8081
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
......@@ -231,7 +231,7 @@ func main() {
// authURL := "https://gw.hml.api.enedis.fr/dataconnect/v1/oauth2/authorize"
// PROD API
authURL := "https://mon-compte-particulier.enedis.fr/dataconnect/v1/oauth2/authorize"
redirectUrl := authURL + "?client_id=" + clientId + "&duration=P6M&response_type=" + responseType + "&state=" + state + "-" + instanceName
redirectUrl := authURL + "?client_id=" + clientId + "&duration=P12M&response_type=" + responseType + "&state=" + state + "-" + instanceName
log.Info("WL - EnedisSuccess - Authorize - Redirecting user to Enedis")
http.Redirect(w, r, redirectUrl, 302)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment