From 70d5f1deac04b6cb46c517b290e0977833048971 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 29 Aug 2018 10:01:13 +0100 Subject: [PATCH] Fix France Connect --- config/env.example | 2 +- config/secrets.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/env.example b/config/env.example index fe6b8be02..9d46cc0d7 100644 --- a/config/env.example +++ b/config/env.example @@ -1,5 +1,5 @@ APP_NAME="tps_local" -APP_HOST="http://localhost:3000/" +APP_HOST="localhost:3000" GITHUB_CLIENT_ID="" GITHUB_CLIENT_SECRET="" diff --git a/config/secrets.yml b/config/secrets.yml index 24c0c5f34..9678196ce 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -18,7 +18,7 @@ defaults: &defaults france_connect_particulier: identifier: <%= ENV['FC_PARTICULIER_ID'] %> secret: <%= ENV['FC_PARTICULIER_SECRET'] %> - redirect_uri: https://{{ <%= ENV['APP_HOST'] %> }}/france_connect/particulier/callback + redirect_uri: https://<%= ENV['APP_HOST'] %>/france_connect/particulier/callback authorization_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/authorize token_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/token userinfo_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/userinfo