SimpleSAML_Logger::debug('SQLPersistentNameID: SP expects different NameID format ('.implode(', ',$validNameIdFormats).') - not generating persistent NameID.');
returnNULL;
}
if(!isset($state['Destination']['entityid'])){
SimpleSAML_Logger::warning('SQLPersistentNameID: No SP entity ID - not generating persistent NameID.');
returnNULL;
}
$spEntityId=$state['Destination']['entityid'];
if(!isset($state['Source']['entityid'])){
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.');
returnNULL;
}
$uid=array_values($state['Attributes'][$this->attribute]);/* Just in case the first index is no longer 0. */