mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-07 19:43:41 +02:00
set saml user as dav authenticated
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
57c0a4d474
commit
e123a8b984
|
@ -21,6 +21,7 @@
|
|||
|
||||
namespace OCA\User_SAML;
|
||||
|
||||
use OCA\DAV\Connector\Sabre\Auth;
|
||||
use OCP\IConfig;
|
||||
use OCP\ISession;
|
||||
use Sabre\DAV\CorePlugin;
|
||||
|
@ -58,6 +59,7 @@ class DavPlugin extends ServerPlugin {
|
|||
) {
|
||||
$uidMapping = $this->config->getAppValue('user_saml', 'general-uid_mapping');
|
||||
if (isset($this->auth[$uidMapping])) {
|
||||
$this->session->set(Auth::DAV_AUTHENTICATED, $this->auth[$uidMapping]);
|
||||
$this->session->set('user_saml.samlUserData', $this->auth);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue