mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 19:44:09 +00:00
Fix SSO provider warning timing (#927)
Warn after providers are registered to avoid false empty state.
This commit is contained in:
@@ -186,8 +186,8 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
||||
Rails.configuration.x.auth.sso_providers << cfg.merge(name: name, strategy: "saml")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if Rails.configuration.x.auth.sso_providers.empty?
|
||||
Rails.logger.warn("No SSO providers enabled; check auth.yml / ENV configuration or database providers")
|
||||
if Rails.configuration.x.auth.sso_providers.empty?
|
||||
Rails.logger.warn("No SSO providers enabled; check auth.yml / ENV configuration or database providers")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user