14 if (!array_key_exists(
'AuthState', $_REQUEST)) {
20 if (array_key_exists(
"SimpleSAML_Auth_Source.id",
$state)) {
21 $authId =
$state[
"SimpleSAML_Auth_Source.id"];
28 if (array_key_exists(
'source', $_REQUEST)) {
31 foreach ($_REQUEST as $k => $v) {
32 $k = explode(
'-', $k, 2);
33 if (count($k) === 2 && $k[0] ===
'src') {
45 if (array_key_exists(
'multiauth:preselect',
$state)) {
55 $t->data[
'preferred'] =
$as->getPreviousSource();
57 $t->data[
'preferred'] = NULL;
if(!array_key_exists('AuthState', $_REQUEST)) $authStateId
static delegateAuthentication($authId, $state)
Delegate authentication.
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
const SOURCESID
The key where the sources is saved in the state.
const STAGEID
The string used to identify our states.
static getById($authId, $type=null)
Retrieve authentication source.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.