Use config_for for omniauth enabled values (#35015)
This commit is contained in:
parent
8ee8231a43
commit
fd902c04f7
5 changed files with 12 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue