2020-11-12 16:09:21 +01:00
|
|
|
# The certificate and secret key are not fetched from secrets.yml because there is a problem to set a secret key from a multiline env var"
|
|
|
|
# So we fetch env var directly here
|
|
|
|
|
2022-01-26 11:59:59 +01:00
|
|
|
if ENV['SAML_IDP_ENABLED'] == 'enabled'
|
2020-11-12 16:09:21 +01:00
|
|
|
SamlIdp.config.x509_certificate = ENV.fetch("SAML_IDP_CERTIFICATE")
|
|
|
|
SamlIdp.config.secret_key = ENV.fetch("SAML_IDP_SECRET_KEY")
|
|
|
|
end
|