icingaweb2/library/Icinga/Authentication
Johannes Rauh dd1f570629 Catch and surface exceptions from enroll() and unenroll()
Previously both methods were declared to throw only `ConfigurationError`
and callers did not catch it. This removes the now-overly-narrow
`@throws ConfigurationError` declarations and wraps both call sites in
`try/catch(Throwable)`, letting the enrollment form log the full
confidential trace and show the exception message inline rather than
leaving the user with an unhandled error page.

The enroll false path is also updated: `Notification::error()` is
replaced with `$this->onError()` to keep error feedback consistent with
the exception path.
2026-05-27 10:47:21 +02:00
..
User License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
UserGroup License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
AdmissionLoader.php License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
Auth.php Reject API requests if 2FA enrolled 2026-05-26 15:27:51 +02:00
AuthChain.php License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
Authenticatable.php License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
LoginButton.php License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
LoginButtonForm.php License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
Role.php License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
RolesConfig.php License source files as GPL-3.0-or-later 2026-03-26 17:49:26 +01:00
TwoFactor.php Catch and surface exceptions from enroll() and unenroll() 2026-05-27 10:47:21 +02:00
TwoFactorState.php Avoid storing full remember-me cookie in session during 2FA challenge 2026-05-27 10:47:21 +02:00