Use config_for for omniauth enabled values (#35015)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-06-24 09:32:13 +00:00
1 parent 8ee8231a43
commit fd902c04f7
5 files changed
+12 -7

No files matched your search

+3 -3
View File
@@ -129,15 +129,15 @@ RSpec.describe 'OmniAuth callbacks' do
end
end
describe '#openid_connect', if: ENV['OIDC_ENABLED'] == 'true' && ENV['OIDC_SCOPE'].present? do
describe '#openid_connect', if: Rails.configuration.x.omniauth.oidc_enabled? && ENV['OIDC_SCOPE'].present? do
it_behaves_like 'omniauth provider callbacks', :openid_connect
end
describe '#cas', if: ENV['CAS_ENABLED'] == 'true' do
describe '#cas', if: Rails.configuration.x.omniauth.cas_enabled? do
it_behaves_like 'omniauth provider callbacks', :cas
end
describe '#saml', if: ENV['SAML_ENABLED'] == 'true' do
describe '#saml', if: Rails.configuration.x.omniauth.saml_enabled? do
it_behaves_like 'omniauth provider callbacks', :saml
end
end