From c33515065e7d19b0f7cf36ef1240aa4bef20e640 Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Wed, 16 Mar 2016 13:01:44 +0100
Subject: [PATCH] Bugfix.

---
 modules/core/www/authenticate.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/core/www/authenticate.php b/modules/core/www/authenticate.php
index c1b9e1b31..8b52e786c 100644
--- a/modules/core/www/authenticate.php
+++ b/modules/core/www/authenticate.php
@@ -52,7 +52,7 @@ $t = new SimpleSAML_XHTML_Template($config, 'status.php', 'attributes');
 $t->data['header'] = '{status:header_saml20_sp}';
 $t->data['attributes'] = $attributes;
 // if saml:sp:IdP is set, this is SAML auth so we can pass a NameId
-$t->data['nameid'] = !is_null( $as->getAuthData('saml:sp:IdP') ) ? $as->getAuthData('saml:sp:NameID') : FALSE;
+$t->data['nameid'] = !is_null( $as->getAuthData('saml:sp:NameID') ) ? $as->getAuthData('saml:sp:NameID') : FALSE;
 $t->data['logouturl'] = \SimpleSAML\Utils\HTTP::getSelfURLNoQuery() . '?as=' . urlencode($asId) . '&logout';
 $t->show();
 
-- 
GitLab