mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-04-27 23:04:53 +02:00
do not evaluate SAML cfg every time app is loaded
- it tests only the first configuration, others were not taken into account - the configuration check is also only needed when SAML auth is actually happening Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
c51048b566
commit
0000691857
|
@ -68,11 +68,6 @@ $returnScript = false;
|
|||
$type = '';
|
||||
switch ($config->getAppValue('user_saml', 'type')) {
|
||||
case 'saml':
|
||||
try {
|
||||
$oneLoginSettings = new \OneLogin\Saml2\Settings($samlSettings->getOneLoginSettingsArray(1));
|
||||
} catch (\OneLogin\SAML2\Error $e) {
|
||||
$returnScript = true;
|
||||
}
|
||||
$type = 'saml';
|
||||
break;
|
||||
case 'environment-variable':
|
||||
|
|
Loading…
Reference in a new issue