mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #7675 from rekonder/aj_SCI_10782
Add check if any SSO is enabled [SCI-10782]
This commit is contained in:
commit
a97f62b775
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue