diff --git a/src/Http/Controllers/Saml2Controller.php b/src/Http/Controllers/Saml2Controller.php index edd4962..61e913b 100644 --- a/src/Http/Controllers/Saml2Controller.php +++ b/src/Http/Controllers/Saml2Controller.php @@ -48,8 +48,11 @@ public function acs(Auth $auth) $errors = $auth->acs(); if (!empty($errors)) { - logger()->error('saml2.error_detail', ['error' => $auth->getLastErrorReason()]); - session()->flash('saml2.error_detail', [$auth->getLastErrorReason()]); + $error = $auth->getLastErrorReason(); + $uuid = $auth->getTenant()->uuid; + + logger()->error('saml2.error_detail', compact('uuid', 'error')); + session()->flash('saml2.error_detail', [$error]); logger()->error('saml2.error', $errors); session()->flash('saml2.error', $errors); @@ -89,8 +92,11 @@ public function sls(Auth $auth) $errors = $auth->sls(config('saml2.retrieveParametersFromServer')); if (!empty($errors)) { - logger()->error('saml2.error_detail', ['error' => $auth->getLastErrorReason()]); - session()->flash('saml2.error_detail', [$auth->getLastErrorReason()]); + $error = $auth->getLastErrorReason(); + $uuid = $auth->getTenant()->uuid; + + logger()->error('saml2.error_detail', compact('uuid', 'error')); + session()->flash('saml2.error_detail', [$error]); logger()->error('saml2.error', $errors); session()->flash('saml2.error', $errors);