SimpleSAML_Logger::debug('SQLPersistentNameID: SP expects different NameID format ('.implode(', ',$validNameIdFormats).') - not generating persistent NameID.');
SimpleSAML_Logger::debug(
returnNULL;
'SQLPersistentNameID: SP expects different NameID format ('.
implode(', ',$validNameIdFormats).'), not generating persistent NameID.'
);
returnnull;
}
}
if(!isset($state['Destination']['entityid'])){
if(!isset($state['Destination']['entityid'])){
SimpleSAML_Logger::warning('SQLPersistentNameID: No SP entity ID - not generating persistent NameID.');
SimpleSAML_Logger::warning('SQLPersistentNameID: No SP entity ID - not generating persistent NameID.');
returnNULL;
returnnull;
}
}
$spEntityId=$state['Destination']['entityid'];
$spEntityId=$state['Destination']['entityid'];
if(!isset($state['Source']['entityid'])){
if(!isset($state['Source']['entityid'])){
SimpleSAML_Logger::warning('SQLPersistentNameID: No IdP entity ID - not generating persistent NameID.');
SimpleSAML_Logger::warning('SQLPersistentNameID: No IdP entity ID - not generating persistent NameID.');
SimpleSAML_Logger::warning('SQLPersistentNameID: Missing attribute '.var_export($this->attribute,TRUE).' on user - not generating persistent NameID.');
SimpleSAML_Logger::warning('SQLPersistentNameID: More than one value in attribute '.var_export($this->attribute,TRUE).' on user - not generating persistent NameID.');
SimpleSAML_Logger::warning(
returnNULL;
'SQLPersistentNameID: More than one value in attribute '.var_export($this->attribute,true).
' on user - not generating persistent NameID.'
);
returnnull;
}
}
$uid=array_values($state['Attributes'][$this->attribute]);/* Just in case the first index is no longer 0. */
$uid=array_values($state['Attributes'][$this->attribute]);// just in case the first index is no longer 0