diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-09-14 18:13:24 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-09-25 16:51:22 +0300 |
commit | 0d020c048afdd53c7a87ef6fada7d301aef05c37 (patch) | |
tree | e95e5bc63959a91209adbe8403fac0a32b26b170 /lib/UserBackend.php | |
parent | 4f852af4cec15d599f5594a550c2844ce44056df (diff) |
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>
Diffstat (limited to 'lib/UserBackend.php')
-rw-r--r-- | lib/UserBackend.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/UserBackend.php b/lib/UserBackend.php index 7b8b1f3d..b894eba0 100644 --- a/lib/UserBackend.php +++ b/lib/UserBackend.php @@ -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); @@ -373,6 +373,15 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend { } /** + * 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 * @since 6.0.0 |