From b90d8970e224090775faddf8ce5ad30d760fa75a Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Thu, 26 Jun 2008 05:24:46 +0000
Subject: [PATCH] Shib13_SSOService: The consent template requires the idp_name
 to be included.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@714 44740490-163a-0410-bde0-09ae8108e29a
---
 www/shib13/idp/SSOService.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/shib13/idp/SSOService.php b/www/shib13/idp/SSOService.php
index 110a5ff6e..7a0456fa0 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['idp_name'] = (isset($idpmetadata['name']) ? $idpmetadata['name'] : $idpentityid);
 				$t->data['spentityid'] = $spentityid;
 				$t->data['attributes'] = $filteredattributes;
 				$t->data['consenturl'] = SimpleSAML_Utilities::selfURLNoQuery();
-- 
GitLab