Ensure SSO enforcement is only active when SAML is enabled
What does this MR do and why?
Describe in detail what your merge request does and why.
Fixes #384312 (closed)
During rollout of the transparent_sso_enforcement
feature flag some customers encountered issues when they had SAML disabled but their members had SAML identities.
When looking at the code I realized that we only checked whether the SAML provider was enabled as part of explicit SSO enforcement. For transparent enforcement (when a user has a SAML identity) we were not considering whether SAML was enabled.
This ensures we do not enforce SSO when SAML is disabled, regardless of SAML identities.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.