From 6518ea5153c0a5c87afe4b359ceaef3c4b205a3e Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 20 Jun 2008 11:23:43 +0000 Subject: [PATCH] Applied patch from Harald Hannelius which adds the SP entity id to the parameters passed to the consent-template. Also added the same code to SAML2 SSOService. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@682 44740490-163a-0410-bde0-09ae8108e29a --- www/saml2/idp/SSOService.php | 1 + www/shib13/idp/SSOService.php | 1 + 2 files changed, 2 insertions(+) diff --git a/www/saml2/idp/SSOService.php b/www/saml2/idp/SSOService.php index 42e94456b..4371f94c5 100644 --- a/www/saml2/idp/SSOService.php +++ b/www/saml2/idp/SSOService.php @@ -268,6 +268,7 @@ if($needAuth && !$isPassive) { $t = new SimpleSAML_XHTML_Template($config, 'consent.php', 'attributes.php'); $t->data['header'] = 'Consent'; $t->data['sp_name'] = $sp_name; + $t->data['spentityid'] = $spentityid; $t->data['attributes'] = $filteredattributes; $t->data['consenturl'] = SimpleSAML_Utilities::selfURLNoQuery(); $t->data['requestid'] = $authId; diff --git a/www/shib13/idp/SSOService.php b/www/shib13/idp/SSOService.php index f991cd178..a2e0038c9 100644 --- a/www/shib13/idp/SSOService.php +++ b/www/shib13/idp/SSOService.php @@ -187,6 +187,7 @@ if (!$session->isAuthenticated($authority) ) { $t = new SimpleSAML_XHTML_Template($config, 'consent.php', 'attributes.php'); $t->data['header'] = 'Consent'; $t->data['sp_name'] = $sp_name; + $t->data['spentityid'] = $spentityid; $t->data['attributes'] = $filteredattributes; $t->data['consenturl'] = SimpleSAML_Utilities::selfURLNoQuery(); $t->data['requestid'] = $authId; -- GitLab