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
17if (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}
$source
Definition: linkback.php:22
An exception for terminatinating execution or to throw for unit testing.
static error($string)
Definition: Logger.php:168
static debug($string)
Definition: Logger.php:213
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:324
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:243
$session
$idpid
Definition: retry.php:14
$idpmeta
Definition: retry.php:15
$metadata
Definition: retry.php:13
$state
Definition: retry.php:11