Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/SAMLController.php')
-rw-r--r--lib/Controller/SAMLController.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php
index b3e53d4d..aa4c163f 100644
--- a/lib/Controller/SAMLController.php
+++ b/lib/Controller/SAMLController.php
@@ -121,6 +121,13 @@ class SAMLController extends Controller {
}
if(!$userExists && !$autoProvisioningAllowed) {
+ // it is possible that the user was not logged in before and
+ // thus is not known to the original backend. A search can
+ // help with it and make the user known
+ $this->userManager->search($uid);
+ if($this->userManager->userExists($uid)) {
+ return;
+ }
throw new NoUserFoundException();
} elseif(!$userExists && $autoProvisioningAllowed) {
$this->userBackend->createUserIfNotExists($uid);