Fix SSO provider warning timing (#927)

Warn after providers are registered to avoid false empty state.
This commit is contained in:
Juan José Mata
2026-02-07 15:57:01 +01:00
committed by GitHub
parent 5239c3c11a
commit fc3504abe0

View File

@@ -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