From a212f063d5410fb7874c833a31625f02ce78f7c9 Mon Sep 17 00:00:00 2001 From: Michiel Kodde Date: Mon, 4 Mar 2024 13:52:13 +0100 Subject: [PATCH] Ensure display of Authn errors In SF 6, the new exception handler does not show the exception message in the exception handler. Rather, these errors are handled at another point (authn listeners). Also see: https://stackoverflow.com/questions/40174266/not-all-exceptions-catched-within-the-error-handler --- .../Exception/MissingRequiredAttributeException.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Surfnet/StepupSelfService/SelfServiceBundle/Exception/MissingRequiredAttributeException.php b/src/Surfnet/StepupSelfService/SelfServiceBundle/Exception/MissingRequiredAttributeException.php index 48dc1d125..bea400580 100644 --- a/src/Surfnet/StepupSelfService/SelfServiceBundle/Exception/MissingRequiredAttributeException.php +++ b/src/Surfnet/StepupSelfService/SelfServiceBundle/Exception/MissingRequiredAttributeException.php @@ -20,8 +20,6 @@ namespace Surfnet\StepupSelfService\SelfServiceBundle\Exception; -use Symfony\Component\Security\Core\Exception\AuthenticationException; - -final class MissingRequiredAttributeException extends AuthenticationException +final class MissingRequiredAttributeException extends RuntimeException { }