From f60055637aea210c62f8bf827140e612c53d9133 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 24 Nov 2021 12:47:01 +0100 Subject: [PATCH] add missing redirect_uri env --- config/env.example | 1 + config/secrets.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/env.example b/config/env.example index d959bd33d..d00111dd7 100644 --- a/config/env.example +++ b/config/env.example @@ -50,6 +50,7 @@ AGENT_CONNECT_ID="" AGENT_CONNECT_SECRET="" AGENT_CONNECT_BASE_URL="" AGENT_CONNECT_JWKS="" +AGENT_CONNECT_REDIRECT="" # Service externe: Support Utilisateur HelpScout | Spécifique démarches-simplifiées.fr HELPSCOUT_MAILBOX_ID="" diff --git a/config/secrets.yml b/config/secrets.yml index d6c545141..86e7a5022 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -28,7 +28,7 @@ defaults: &defaults agent_connect: identifier: <%= ENV['AGENT_CONNECT_ID'] %> secret: <%= ENV['AGENT_CONNECT_SECRET'] %> - redirect_uri: http://test.localhost:3000/agent_connect/callback + redirect_uri: <%= ENV['AGENT_CONNECT_REDIRECT'] %> authorization_endpoint: <%= ENV['AGENT_CONNECT_BASE_URL'] %>/api/v2/authorize token_endpoint: <%= ENV['AGENT_CONNECT_BASE_URL'] %>/api/v2/token userinfo_endpoint: <%= ENV['AGENT_CONNECT_BASE_URL'] %>/api/v2/userinfo