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:
authorBjoern Schiessle <bjoern@schiessle.org>2018-11-20 19:32:14 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2018-11-20 19:34:46 +0300
commit9790fbcb5650c8329bec4177ac1f2dadb26e6483 (patch)
tree7bb96f7b37749f4f5b352c4190a0de721cd8c27a /lib/Controller
parent0ebcaa733db6abf345b960b76ac6a8a5aea560d4 (diff)
improve error messages in case SAML is not configured properly
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/SAMLController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php
index 983fb3ec..e25a512c 100644
--- a/lib/Controller/SAMLController.php
+++ b/lib/Controller/SAMLController.php
@@ -154,7 +154,7 @@ class SAMLController extends Controller {
}
}
- throw new NoUserFoundException('Remote user environment variable (' . $uidMapping . ') not found in environment');
+ throw new NoUserFoundException('IDP parameter for the UID (' . $uidMapping . ') not found. Possible parameters are: ' . json_encode(array_keys($auth)));
}
/**
@@ -271,7 +271,7 @@ class SAMLController extends Controller {
try {
$this->autoprovisionIfPossible($auth->getAttributes());
} catch (NoUserFoundException $e) {
- $this->logger->info('User not found', ['app' => $this->appName]);
+ $this->logger->error($e->getMessage(), ['app' => $this->appName]);
return new Http\RedirectResponse($this->urlGenerator->linkToRouteAbsolute('user_saml.SAML.notProvisioned'));
}