Skip to content
Snippets Groups Projects
Commit 1e66c157 authored by Olav Morken's avatar Olav Morken
Browse files

saml:PersistentNameID: Fix generation of persistent NameID.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2610 44740490-163a-0410-bde0-09ae8108e29a
parent 5ee91757
No related branches found
No related tags found
No related merge requests found
......@@ -42,17 +42,17 @@ class sspmod_saml_Auth_Process_PersistentNameID extends sspmod_saml_BaseNameIDGe
*/
protected function getValue(array &$state) {
if (!isset($state['SPMetadata']['entityid'])) {
if (!isset($state['Destination']['entityid'])) {
SimpleSAML_Logger::warning('No SP entity ID - not generating persistent NameID.');
return NULL;
}
$spEntityId = $state['SPMetadata']['entityid'];
$spEntityId = $state['Destination']['entityid'];
if (!isset($state['IdPMetadata']['entityid'])) {
if (!isset($state['Source']['entityid'])) {
SimpleSAML_Logger::warning('No IdP entity ID - not generating persistent NameID.');
return NULL;
}
$idpEntityId = $state['IdPMetadata']['entityid'];
$idpEntityId = $state['Source']['entityid'];
if (!isset($state['Attributes'][$this->attribute]) || count($state['Attributes'][$this->attribute]) === 0) {
SimpleSAML_Logger::warning('Missing attribute ' . var_export($this->attribute, TRUE) . ' on user - not generating persistent NameID.');
......
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