Skip to content
Snippets Groups Projects

fix: correct no tokens redirect

Merged Pavel Břoušek requested to merge main-patch-6aa1 into main
+ 6
2
@@ -2,15 +2,19 @@
declare(strict_types=1);
use SimpleSAML\Auth\State;
use SimpleSAML\Configuration;
use SimpleSAML\Module\authswitcher\Auth\Process\SwitchAuth;
use SimpleSAML\XHTML\Template;
use SimpleSAML\State;
$config = Configuration::getInstance();
$t = new Template($config, SwitchAuth::SETUP_MFA_TPL_URL);
$state = State::loadState($stateID, 'authswitcher:authswitcher', true);
if (empty($_GET['stateId'])) {
exit;
}
$state = State::loadState($_GET['stateId'], 'authswitcher:authswitcher', true);
$t->data[SwitchAuth::PARAM_MFA_REDIRECT_URL] = $state[SwitchAuth::PARAM_MFA_REDIRECT_URL];
$t->show();
Loading