mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-11 13:16:06 +02:00
Merge pull request #156 from nextcloud/more-logging-for-debugging
More logging for debugging
This commit is contained in:
commit
0187682be9
|
@ -208,6 +208,7 @@ class SAMLController extends Controller {
|
|||
}
|
||||
|
||||
if (!$auth->isAuthenticated()) {
|
||||
$this->logger->info('Auth failed', ['app' => $this->appName]);
|
||||
return new Http\RedirectResponse($this->urlGenerator->linkToRouteAbsolute('user_saml.SAML.notProvisioned'));
|
||||
}
|
||||
|
||||
|
@ -216,6 +217,7 @@ class SAMLController extends Controller {
|
|||
try {
|
||||
$this->autoprovisionIfPossible($auth->getAttributes());
|
||||
} catch (NoUserFoundException $e) {
|
||||
$this->logger->info('User not found', ['app' => $this->appName]);
|
||||
return new Http\RedirectResponse($this->urlGenerator->linkToRouteAbsolute('user_saml.SAML.notProvisioned'));
|
||||
}
|
||||
|
||||
|
@ -230,6 +232,7 @@ class SAMLController extends Controller {
|
|||
}
|
||||
$user->updateLastLoginTimestamp();
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->logException($e, ['app' => $this->appName]);
|
||||
return new Http\RedirectResponse($this->urlGenerator->linkToRouteAbsolute('user_saml.SAML.notProvisioned'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue