diff --git a/www/shib13/idp/SSOService.php b/www/shib13/idp/SSOService.php
index 110a5ff6e9c6325848eafd02fa511fcdf820ba27..7a0456fa05f754c50cb8d3b98598e0525cb72ada 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();