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

feat: bump consent duration to a year

parent b6206c07
No related branches found
No related tags found
1 merge request!8Feat/us768 consent duration
...@@ -2,6 +2,7 @@ version: "2.4" ...@@ -2,6 +2,7 @@ version: "2.4"
services: services:
cozy-oauth-proxy: 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: registry.forge.grandlyon.com/pocs/cozy/cozy-oauth-proxy
# image: cozy-oauth-proxy # image: cozy-oauth-proxy
container_name: cozy-oauth-proxy container_name: cozy-oauth-proxy
...@@ -13,3 +14,8 @@ services: ...@@ -13,3 +14,8 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- 8081:8081 - 8081:8081
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
...@@ -231,7 +231,7 @@ func main() { ...@@ -231,7 +231,7 @@ func main() {
// authURL := "https://gw.hml.api.enedis.fr/dataconnect/v1/oauth2/authorize" // authURL := "https://gw.hml.api.enedis.fr/dataconnect/v1/oauth2/authorize"
// PROD API // PROD API
authURL := "https://mon-compte-particulier.enedis.fr/dataconnect/v1/oauth2/authorize" 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") log.Info("WL - EnedisSuccess - Authorize - Redirecting user to Enedis")
http.Redirect(w, r, redirectUrl, 302) 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