ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
retry.php
Go to the documentation of this file.
1 <?php
2 
12 
14 $idpid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted', 'metaindex');
15 $idpmeta = $metadata->getMetaData($idpid, 'saml20-idp-hosted');
16 
17 if (isset($idpmeta['auth'])) {
19  if ($source === NULL)
20  throw new SimpleSAML_Error_BadRequest('Invalid AuthId "' . $idpmeta['auth'] . '" - not found.');
21 
23  $session->setData('negotiate:disable', 'session', FALSE, 24*60*60);
24  SimpleSAML\Logger::debug('Negotiate(retry) - session enabled, retrying.');
25  $source->authenticate($state);
26  assert('FALSE');
27 } else {
28  SimpleSAML\Logger::error('Negotiate - retry - no "auth" parameter found in IdP metadata.');
29  assert('FALSE');
30 }
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
static debug($string)
Definition: Logger.php:213
$session
$idpid
Definition: retry.php:14
$state
Definition: retry.php:11
static error($string)
Definition: Logger.php:168
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
$idpmeta
Definition: retry.php:15
$metadata
Definition: retry.php:13
$source
Definition: linkback.php:22
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:324
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:243