make running / generating SAML/Shibboleth config depending on an IPD configured

This commit is contained in:
Ralf Becker 2020-05-29 10:25:31 +02:00
parent 1fd3e3e34a
commit 4d2d14dd99

View File

@ -194,7 +194,7 @@ class Saml implements BackendSSO
return substr($key, 0, 5) === 'saml_' || $key === 'auth_type';
}, ARRAY_FILTER_USE_BOTH), JSON_UNESCAPED_SLASHES));*/
if ($newsettings['auth_type'] !== 'saml') return; // nothing to do
if (empty($config['saml_idp'])) return; // nothing to do, if not idp defined
if (file_exists($config['files_dir'].'/saml/config.php'))
{