isValid('shib13') ) { SimpleSAML_Utilities::redirectTrustedURL( '/' . $config->getBaseURL() . 'shib13/sp/initSSO.php', array('RelayState' => SimpleSAML_Utilities::selfURL()) ); } /* Prepare attributes for presentation * and call a hook function for organizing the attribute array */ $attributes = $session->getAuthData('shib13', 'Attributes'); $para = array( 'attributes' => &$attributes ); SimpleSAML_Module::callHooks('attributepresentation', $para); /* * The attributes variable now contains all the attributes. So this variable is basicly all you need to perform integration in * your PHP application. * * To debug the content of the attributes variable, do something like: * * print_r($attributes); * */ $t = new SimpleSAML_XHTML_Template($config, 'status.php', 'attributes'); $t->data['header'] = '{status:header_shib}'; $t->data['remaining'] = $session->getAuthData('shib13', 'Expire') - time(); $t->data['sessionsize'] = $session->getSize(); $t->data['attributes'] = $attributes; $t->data['logout'] = null; $t->show(); ?>