Skip to content

Commit

Permalink
namespace issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Tamás committed Sep 7, 2018
1 parent 23c09dc commit b40daad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/Auth/Process/PersistentNameID.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ public function __construct($config, $reserved)
protected function getValue(array &$state)
{
if (!isset($state['Destination']['entityid'])) {
SimpleSAML_Logger::warning('No SP entity ID - not generating persistent NameID.');
SimpleSAML\Logger::warning('No SP entity ID - not generating persistent NameID.');

return;
}
$spEntityId = $state['Destination']['entityid'];

if (!isset($state['Source']['entityid'])) {
SimpleSAML_Logger::warning('No IdP entity ID - not generating persistent NameID.');
SimpleSAML\Logger::warning('No IdP entity ID - not generating persistent NameID.');

return;
}
$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.');
SimpleSAML\Logger::warning('Missing attribute '.var_export($this->attribute, true).' on user - not generating persistent NameID.');

return;
}
if (count($state['Attributes'][$this->attribute]) > 1) {
SimpleSAML_Logger::warning('More than one value in attribute '.var_export($this->attribute, true).' on user - not generating persistent NameID.');
SimpleSAML\Logger::warning('More than one value in attribute '.var_export($this->attribute, true).' on user - not generating persistent NameID.');

return;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Auth/Process/PersistentNameID2TargetedID.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function process(&$state)
assert('is_array($state)');

if (!isset($state['saml:NameID'][SAML2_Const::NAMEID_PERSISTENT])) {
SimpleSAML_Logger::warning('Unable to generate eduPersonTargetedID because no persistent NameID was available.');
SimpleSAML\Logger::warning('Unable to generate eduPersonTargetedID because no persistent NameID was available.');

return;
}
Expand Down

0 comments on commit b40daad

Please sign in to comment.