I have two situations. The first is disabled users in my LDAP. I need a more informative message than at worst the stack trace and at best, just that an error has occurred.
The second involves DUO MFA. During enrollment into DUO the user often loses the session and an error message like this happens:
- Backtrace:
2 src/SimpleSAML/Error/ExceptionHandler.php:44 (SimpleSAML\Error\ExceptionHandler::customExceptionHandler)
1 vendor/symfony/error-handler/ErrorHandler.php:538 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
0 [builtin] (N/A)
Caused by: SimpleSAML\Error\Exception: No state with Duo nonce.
Backtrace:
2 modules/duouniversal/public/duocallback.php:59 (require)
1 src/SimpleSAML/Module.php:308 (SimpleSAML\Module::process)
0 public/module.php:17 (N/A)
I just need a simple message telling them they just need to log in again as the session timed out or that they forgot to pay the you took too long tax.