Skip to content
Snippets Groups Projects
Commit 480e30eb authored by Nicholas Amon's avatar Nicholas Amon
Browse files

Bug fix to include the subject nameid in the data returned from a SAML

1.0 SSO authentication.
parent a0b636d8
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ class SimpleSAML_Auth_Default {
}
/* Add those that should always be included. */
foreach (array('Attributes', 'Expire', 'LogoutState', 'AuthnInstant', 'RememberMe') as $a) {
foreach (array('Attributes', 'Expire', 'LogoutState', 'AuthnInstant', 'RememberMe', 'saml:sp:NameID') as $a) {
if (isset($state[$a])) {
$persistentAuthState[$a] = $state[$a];
}
......
......@@ -85,6 +85,8 @@ $logoutState = array(
);
$state['LogoutState'] = $logoutState;
$state['saml:sp:NameID'] = $response->getNameID();
$source->handleResponse($state, $responseIssuer, $attributes);
assert('FALSE');
......
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