Skip to content
Snippets Groups Projects
Commit a395329b authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fixes for modules/consentAdmin

parent 4ce25482
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,8 @@
* Hook to add the consentAdmin module to the config page.
*
* @param \SimpleSAML\XHTML\Template $template The template that we should alter in this hook.
* @return void
*/
function consentAdmin_hook_configpage(\SimpleSAML\XHTML\Template &$template)
{
$template->data['links']['consentAdmin'] = [
......
......@@ -14,6 +14,16 @@
/*
* Runs the processing chain and ignores all filter which have user
* interaction.
*
* @param array $idp_metadata
* @param string $source
* @param array $sp_metadata
* @param string $sp_entityid
* @param array $attributes
* @param string $userid
* @param bool $hashAttributes
* @param array $excludeAttributes
* @return array
*/
function driveProcessingChain(
$idp_metadata,
......@@ -107,7 +117,6 @@ $metadata = \SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler();
* Get IdP id and metadata
*/
$idp_entityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
$idp_metadata = $metadata->getMetaData($idp_entityid, 'saml20-idp-hosted');
......@@ -176,6 +185,7 @@ if ($action !== null && $sp_entityid !== null) {
'consentAdmin:consentadminajax.php',
'consentAdmin:consentadmin'
);
$translator = $t->getTranslator();
// Get SP metadata
$sp_metadata = $metadata->getMetaData($sp_entityid, 'saml20-sp-remote');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment