public function SimplesamlphpAuthTestManager::getAttributes in simpleSAMLphp Authentication 8.3
Gets all SimpleSAML attributes.
Return value
array Array of SimpleSAML attributes.
Overrides SimplesamlphpAuthManager::getAttributes
File
- tests/
simplesamlphp_auth_test/ src/ SimplesamlphpAuthTestManager.php, line 43
Class
- SimplesamlphpAuthTestManager
- Mock SimplesamlphpAuthManager class for testing purposes.
Namespace
Drupal\simplesamlphp_auth_testCode
public function getAttributes() {
return [
'uid' => [
0 => 'saml_user',
],
'displayName' => [
0 => 'Test Saml User',
],
'mail' => [
0 => 'saml@example.com',
],
'roles' => [
0 => [
'employee',
'test_role',
],
],
];
}