"Enable SAML Authentication" checkbox backs to be not selected when re-open "Password Management" window #4247
Labels
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type:Bug
Bugs within the core SuiteCRM codebase
Issue
After you have selected the "Enable SAML Authentication" checkbox and saved the configuration, if you re-open the "Password Management" section, the "Enable SAML Authentication" checkbox back to be not selected (note that the SAML authentication is yet active until you don't save the configuration)
Expected Behavior
"Enable SAML Authentication" checkbox should remain selected.
Actual Behavior
"Enable SAML Authentication" checkbox back to be not selected.
Possible Fix
The SAML Authentication enabled configuration is stored in the following parameter
$sugar_config['authenticationClass'] = 'SAML2Authenticate';
you can find it in the config_override.php in the root of the suitecrm installation
In the template view of "Password Management" an if condition is performed on "SAMLAuthenticate" value (vs SAML2Authenticate)
see file "modules/Administration/PasswordManager.tpl" row:435
{if !empty($config.authenticationClass) && $config.authenticationClass == 'SAMLAuthenticate'}
Changing the template if condition fix the specific issue but there are many piece of code where if condition uses the string "SAMLAuthenticate" instead of "SAML2Authenticate".
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: