mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-04 18:13:41 +02:00
add method to get the user data from the idp
This is needed in the global scale setup to forward the user data from the master node (where the login happens) to the client node Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
4f852af4ce
commit
0d020c048a
|
@ -114,7 +114,7 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend {
|
|||
$qb->setValue($column, $qb->createNamedParameter($value));
|
||||
}
|
||||
$qb->execute();
|
||||
|
||||
|
||||
### Code taken from lib/private/User/Session.php - function prepareUserLogin() ###
|
||||
//trigger creation of user home and /files folder
|
||||
$userFolder = \OC::$server->getUserFolder($uid);
|
||||
|
@ -372,6 +372,15 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend {
|
|||
return 'style="display:none;"';
|
||||
}
|
||||
|
||||
/**
|
||||
* return user data from the idp
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getUserData() {
|
||||
return $this->session->get('user_saml.samlUserData');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the id of the current user
|
||||
* @return string
|
||||
|
|
Loading…
Reference in a new issue