ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
authenticate.php File Reference

Go to the source code of this file.

Variables

 $config = SimpleSAML_Configuration::getInstance()
 
if(!array_key_exists('as', $_REQUEST)) $asId = (string) $_REQUEST['as']
 
 $as = new \SimpleSAML\Auth\Simple($asId)
 
if(array_key_exists('logout', $_REQUEST)) if(array_key_exists(SimpleSAML_Auth_State::EXCEPTION_PARAM, $_REQUEST)) if(! $as->isAuthenticated()) $attributes = $as->getAttributes()
 
 $authData = $as->getAuthDataArray()
 
 $t = new SimpleSAML_XHTML_Template($config, 'status.php', 'attributes')
 
$t data ['header'] = '{status:header_saml20_sp}'
 
$t data ['attributes'] = $attributes
 
$t data ['authData'] = $authData
 
$t data ['nameid'] = !is_null($as->getAuthData('saml:sp:NameID')) ? $as->getAuthData('saml:sp:NameID') : false
 
$t data ['logouturl'] = \SimpleSAML\Utils\HTTP::getSelfURLNoQuery().'?as='.urlencode($asId).'&logout'
 

Variable Documentation

◆ $as

$as = new \SimpleSAML\Auth\Simple($asId)

Definition at line 14 of file authenticate.php.

◆ $asId

if (!array_key_exists( 'as', $_REQUEST)) $asId = (string) $_REQUEST['as']

Definition at line 13 of file authenticate.php.

◆ $attributes

if (array_key_exists( 'logout', $_REQUEST)) if (array_key_exists(SimpleSAML_Auth_State::EXCEPTION_PARAM, $_REQUEST)) if (! $as->isAuthenticated()) $attributes = $as->getAttributes()

Definition at line 39 of file authenticate.php.

◆ $authData

$authData = $as->getAuthDataArray()

Definition at line 40 of file authenticate.php.

Referenced by ilStartUpGUI\doSamlAuthentication().

◆ $config

Definition at line 3 of file authenticate.php.

◆ $t

$t = new SimpleSAML_XHTML_Template($config, 'status.php', 'attributes')

Definition at line 42 of file authenticate.php.

◆ data [1/5]

$t data[ 'header'] = '{status:header_saml20_sp}'

Definition at line 44 of file authenticate.php.

◆ data [2/5]

$t data[ 'attributes'] = $attributes

Definition at line 45 of file authenticate.php.

◆ data [3/5]

$t data[ 'authData'] = $authData

Definition at line 46 of file authenticate.php.

◆ data [4/5]

$t data[ 'nameid'] = !is_null($as->getAuthData('saml:sp:NameID')) ? $as->getAuthData('saml:sp:NameID') : false

Definition at line 47 of file authenticate.php.

◆ data [5/5]

$t data[ 'logouturl'] = \SimpleSAML\Utils\HTTP::getSelfURLNoQuery().'?as='.urlencode($asId).'&logout'

Definition at line 48 of file authenticate.php.