diff --git a/docker-compose.yml b/docker-compose.yml index a7486bbc9acb6d413efb513b1e98f8e2f89071d8..4d80fafe2584864659a261b12d046a326beba46e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 + diff --git a/main.go b/main.go index e4f2019da87ce7c400e8357808183c032ca0e0c4..6f9e87b831937227a919ee8a521baf076f683ec1 100644 --- a/main.go +++ b/main.go @@ -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)