387701e7cb
This fixes the app crashing on launch when using the production profile, because the certificates are not present.
7 lines
353 B
Ruby
7 lines
353 B
Ruby
# 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
|
|
|
|
if ENV['SAML_IDP_ENABLED'] == 'enabled'
|
|
SamlIdp.config.x509_certificate = ENV.fetch("SAML_IDP_CERTIFICATE")
|
|
SamlIdp.config.secret_key = ENV.fetch("SAML_IDP_SECRET_KEY")
|
|
end
|