demarches-normaliennes/config/initializers/saml_idp.rb

8 lines
353 B
Ruby
Raw Normal View History

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
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