Skip to content
Snippets Groups Projects
Commit 8026b290 authored by Danny's avatar Danny Committed by Tim van Dijen
Browse files

The preselect param is not being saved in the state. + small spelling mistakes (#1021)

parent 513d2a59
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,10 @@ class MultiAuth extends \SimpleSAML\Auth\Source
$state[self::AUTHID] = $this->authId;
$state[self::SOURCESID] = $this->sources;
if (!\array_key_exists('multiauth:preselect', $state) && is_string($this->preselect)) {
$state['multiauth:preselect'] = $this->preselect;
}
// Save the $state array, so that we can restore if after a redirect
$id = \SimpleSAML\Auth\State::saveState($state, self::STAGEID);
......@@ -139,11 +143,7 @@ class MultiAuth extends \SimpleSAML\Auth\Source
$url = \SimpleSAML\Module::getModuleURL('multiauth/selectsource.php');
$params = ['AuthState' => $id];
if (!\array_key_exists('multiauth:preselect', $state) && is_string($this->preselect)) {
$state['multiauth:preselect'] = $this->preselect;
}
// Allowes the user to specify the auth souce to be used
// Allows the user to specify the auth source to be used
if (isset($_GET['source'])) {
$params['source'] = $_GET['source'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment