Merge pull request #7195 from betagouv/7187/fix-siret-usage-for-api-entreprise
tech(ApiEntreprise): use dinum SIRET for all APIs call within the recipient params
This commit is contained in:
commit
c19222a994
2 changed files with 4 additions and 1 deletions
|
@ -120,7 +120,7 @@ class APIEntreprise::API
|
||||||
# rubocop:disable DS/ApplicationName
|
# rubocop:disable DS/ApplicationName
|
||||||
params = {
|
params = {
|
||||||
context: "demarches-simplifiees.fr",
|
context: "demarches-simplifiees.fr",
|
||||||
recipient: siret_or_siren,
|
recipient: ENV.fetch('API_ENTREPRISE_DEFAULT_SIRET'),
|
||||||
object: "procedure_id: #{procedure_id}",
|
object: "procedure_id: #{procedure_id}",
|
||||||
non_diffusables: true
|
non_diffusables: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,3 +157,6 @@ INVISIBLE_CAPTCHA_SECRET="kikooloool"
|
||||||
|
|
||||||
# Clamav antivirus usage
|
# Clamav antivirus usage
|
||||||
CLAMAV_ENABLED="disabled"
|
CLAMAV_ENABLED="disabled"
|
||||||
|
|
||||||
|
# Siret number used for API Entreprise, by default we use SIRET from dinum
|
||||||
|
API_ENTREPRISE_DEFAULT_SIRET="put_your_own_siret"
|
||||||
|
|
Loading…
Add table
Reference in a new issue