commit
358637adde
4 changed files with 10 additions and 17 deletions
|
@ -45,7 +45,7 @@ class ApiEntreprise::API
|
|||
end
|
||||
|
||||
def self.url(resource_name, siret_or_siren)
|
||||
[base_url, resource_name, siret_or_siren].join("/")
|
||||
[API_ENTREPRISE_URL, resource_name, siret_or_siren].join("/")
|
||||
end
|
||||
|
||||
def self.params(siret_or_siren, procedure_id)
|
||||
|
@ -62,8 +62,4 @@ class ApiEntreprise::API
|
|||
def self.token
|
||||
Rails.application.secrets.api_entreprise[:key]
|
||||
end
|
||||
|
||||
def self.base_url
|
||||
Rails.application.secrets.api_entreprise[:base_url]
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,8 +6,7 @@ GITHUB_CLIENT_SECRET=""
|
|||
|
||||
FC_PARTICULIER_ID=""
|
||||
FC_PARTICULIER_SECRET=""
|
||||
FC_PARTICULIER_REDIRECT_URI=""
|
||||
FC_PARTICULIER_HOST=""
|
||||
FC_PARTICULIER_BASE_URL=""
|
||||
|
||||
API_ENTREPRISE_KEY=""
|
||||
API_ENTREPRISE_BASE_URL="https://entreprise.api.gouv.fr/v2"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# API URLs
|
||||
API_CARTO_URL = "https://apicarto.sgmap.fr"
|
||||
|
||||
API_ENTREPRISE_URL = "https://entreprise.api.gouv.fr/v2"
|
||||
API_GEO_URL = "https://geo.api.gouv.fr"
|
||||
|
||||
PIPEDRIVE_API_URL = 'https://api.pipedrive.com/v1'
|
||||
|
||||
# External services URLs
|
||||
DOC_URL = "https://doc.demarches-simplifiees.fr"
|
||||
LISTE_DES_DEMARCHES_URL = [DOC_URL, "listes-des-demarches"].join("/")
|
||||
CGU_URL = [DOC_URL, "cgu"].join("/")
|
||||
MENTIONS_LEGALES_URL = [CGU_URL, "4-mentions-legales"].join("#")
|
||||
|
||||
FAQ_URL = "https://faq.demarches-simplifiees.fr"
|
||||
|
|
|
@ -18,11 +18,11 @@ defaults: &defaults
|
|||
france_connect_particulier:
|
||||
identifier: <%= ENV['FC_PARTICULIER_ID'] %>
|
||||
secret: <%= ENV['FC_PARTICULIER_SECRET'] %>
|
||||
redirect_uri: <%= ENV['FC_PARTICULIER_REDIRECT_URI'] %>
|
||||
authorization_endpoint: <%= ENV['FC_PARTICULIER_HOST'] %>/api/v1/authorize
|
||||
token_endpoint: <%= ENV['FC_PARTICULIER_HOST'] %>/api/v1/token
|
||||
userinfo_endpoint: <%= ENV['FC_PARTICULIER_HOST'] %>/api/v1/userinfo
|
||||
logout_endpoint: <%= ENV['FC_PARTICULIER_HOST'] %>/api/v1/logout
|
||||
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
|
||||
logout_endpoint: <%= ENV['FC_PARTICULIER_BASE_URL'] %>/api/v1/logout
|
||||
github:
|
||||
client_id: <%= ENV['GITHUB_CLIENT_ID'] %>
|
||||
client_secret: <%= ENV['GITHUB_CLIENT_SECRET'] %>
|
||||
|
@ -31,7 +31,6 @@ defaults: &defaults
|
|||
secret_key: <%= ENV['MAILJET_SECRET_KEY'] %>
|
||||
api_entreprise:
|
||||
key: <%= ENV['API_ENTREPRISE_KEY'] %>
|
||||
base_url: <%= ENV['API_ENTREPRISE_BASE_URL'] %>
|
||||
pipedrive:
|
||||
key: <%= ENV['PIPEDRIVE_KEY'] %>
|
||||
fog:
|
||||
|
@ -57,7 +56,6 @@ test:
|
|||
signing_key: aef3153a9829fa4ba10acb02927ac855df6b92795b1ad265d654443c4b14a017
|
||||
api_entreprise:
|
||||
key: api_entreprise_test_key
|
||||
base_url: https://entreprise.api.gouv.fr/v2
|
||||
fog:
|
||||
base_url: https://storage.apientreprise.fr
|
||||
directory: tps_dev
|
||||
|
|
Loading…
Reference in a new issue