mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +02:00
Allow X500 attributes for user info and added some tests
This commit is contained in:
parent
91fb861fd3
commit
586a57c2c9
7 changed files with 193 additions and 3 deletions
|
@ -31,13 +31,12 @@ class SamlUserFactory implements SamlUserFactoryInterface
|
|||
$user = new User();
|
||||
$user->setName($username);
|
||||
$user->setNeedPwChange(false);
|
||||
$user->setPassword('$$SAML$$');
|
||||
$user->setPassword('!!SAML!!');
|
||||
//This is a SAML user now!
|
||||
$user->setSamlUser(true);
|
||||
|
||||
$user->setSamlAttributes($attributes);
|
||||
|
||||
|
||||
return $user;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue