feat: conditionally load saml

This commit is contained in:
Shivam Mishra
2025-09-10 10:56:06 +05:30
parent f1f2b3f302
commit 7a9840717e
+2 -2
View File
@@ -43,6 +43,6 @@ Rails.application.config.middleware.use OmniAuth::Builder do
provider_ignores_state: true
}
# SAML provider with setup phase for multi-tenant configuration
provider :saml, setup: SAML_SETUP_PROC
# SAML provider with setup phase for multi-tenant configuration (Enterprise only)
provider :saml, setup: SAML_SETUP_PROC if defined?(ChatwootApp) && ChatwootApp.enterprise?
end