add agent connect secrets
This commit is contained in:
parent
d2432e34eb
commit
45ce274721
3 changed files with 15 additions and 0 deletions
|
@ -45,6 +45,12 @@ FC_PARTICULIER_ID=""
|
||||||
FC_PARTICULIER_SECRET=""
|
FC_PARTICULIER_SECRET=""
|
||||||
FC_PARTICULIER_BASE_URL=""
|
FC_PARTICULIER_BASE_URL=""
|
||||||
|
|
||||||
|
# Service externe: authentification Agent Connect
|
||||||
|
AGENT_CONNECT_ID=""
|
||||||
|
AGENT_CONNECT_SECRET=""
|
||||||
|
AGENT_CONNECT_BASE_URL=""
|
||||||
|
AGENT_CONNECT_JWKS=""
|
||||||
|
|
||||||
# Service externe: Support Utilisateur HelpScout | Spécifique démarches-simplifiées.fr
|
# Service externe: Support Utilisateur HelpScout | Spécifique démarches-simplifiées.fr
|
||||||
HELPSCOUT_MAILBOX_ID=""
|
HELPSCOUT_MAILBOX_ID=""
|
||||||
HELPSCOUT_CLIENT_ID=""
|
HELPSCOUT_CLIENT_ID=""
|
||||||
|
|
1
config/initializers/agent_connect.rb
Normal file
1
config/initializers/agent_connect.rb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
AGENT_CONNECT = Rails.application.secrets.agent_connect
|
|
@ -25,6 +25,14 @@ defaults: &defaults
|
||||||
token_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/token
|
token_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/token
|
||||||
userinfo_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/userinfo
|
userinfo_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/userinfo
|
||||||
logout_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/logout
|
logout_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/logout
|
||||||
|
agent_connect:
|
||||||
|
identifier: <%= ENV['AGENT_CONNECT_ID'] %>
|
||||||
|
secret: <%= ENV['AGENT_CONNECT_SECRET'] %>
|
||||||
|
redirect_uri: http://test.localhost:3000/agent_connect/callback
|
||||||
|
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
|
||||||
|
logout_endpoint: <%= ENV['AGENT_CONNECT_BASE_URL'] %>/api/v2/session/end
|
||||||
mailjet:
|
mailjet:
|
||||||
api_key: <%= ENV['MAILJET_API_KEY'] %>
|
api_key: <%= ENV['MAILJET_API_KEY'] %>
|
||||||
secret_key: <%= ENV['MAILJET_SECRET_KEY'] %>
|
secret_key: <%= ENV['MAILJET_SECRET_KEY'] %>
|
||||||
|
|
Loading…
Reference in a new issue