Merge pull request #7675 from rekonder/aj_SCI_10782

Add check if any SSO is enabled [SCI-10782]
This commit is contained in:
ajugo 2024-07-03 10:17:26 +02:00 committed by GitHub
commit a97f62b775
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,6 +199,10 @@ module ApplicationHelper
ENV['SSO_ENABLED'] == 'true'
end
def sso_provider_enabled?
okta_enabled?.present? || azure_ad_enabled?.present? || saml_enabled?.present? || openid_connect_enabled?.present?
end
def okta_enabled?
ApplicationSettings.instance.values.dig('okta', 'enabled')
end