Skip to content
Snippets Groups Projects
Commit 700125a4 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Add NameID to attributes status page.

parent 7af07d30
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,15 @@
"sessionsize": {
"en": "Session size: %SIZE%"
},
"subject_header": {
"en": "SAML Subject"
},
"subject_notset": {
"en": "not set"
},
"subject_format": {
"en": "Format"
},
"attributes_header": {
"en": "Your attributes"
},
......
......@@ -51,6 +51,8 @@ $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['logouturl'] = SimpleSAML_Utilities::selfURLNoQuery() . '?as=' . urlencode($asId) . '&logout';
$t->show();
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