Merge pull request #6670 from betagouv/nicer_agent_connect

Ajoute une variable d'env manquante a AgentConnect
This commit is contained in:
LeSim 2021-11-24 13:28:13 +01:00 committed by GitHub
commit 618fec575f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,5 @@
- content_for(:title, t('.cta'))
.container
%h1.mt-2.mb-2= t('.connect')

View file

@ -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=""

View file

@ -8,4 +8,4 @@ fr:
<br />
<br />
Seul les agents du <b class='bold'>ministère de la Transition écologique</b> peuvent actuellement en bénéficier.
cta: Sidentifier avec Agent Connect
cta: Sidentifier avec AgentConnect

View file

@ -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