From b4a8b0bdd963c6bba9797472d53e1d219f159fae Mon Sep 17 00:00:00 2001 From: CatalinVoineag <11318084+CatalinVoineag@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:46:51 +0000 Subject: [PATCH] fix --- lib/omniauth/onelogin_setup.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/omniauth/onelogin_setup.rb b/lib/omniauth/onelogin_setup.rb index def154d1efb..7399c749cc4 100644 --- a/lib/omniauth/onelogin_setup.rb +++ b/lib/omniauth/onelogin_setup.rb @@ -9,7 +9,9 @@ def self.configure(builder) private_key_pem = private_key_pem.gsub('\n', "\n") private_key = OpenSSL::PKey::RSA.new(private_key_pem) rescue OpenSSL::PKey::RSAError => e - raise e unless HostingEnvironment.development? + #raise e unless HostingEnvironment.development? + puts "rails env #{Rails.env} and hosting env #{HostingEnvironment.development?}" + puts "hosting env name #{HostingEnvironment.environment_name}" end builder.provider :govuk_one_login_openid_connect,