Replies: 1 comment
-
The exception mapping seemed to work. If anyone is interested:
If there's a better way to handle this, I'm all ears. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to handle a login error with my custom login form. Right now, I have
quarkus.http.auth.form.error-page=/login
, I can see there's anio.quarkus.security.AuthenticationException
thrown from theFormAuthenticationMechanism
. When this exception is thrown, it's sending a302
to the login page, but nothing else is set on the URL to hook into any sort of an error. I'd like to re-render the login form with an invalid credentials error, ideally using HTMX.Would this be possible? I could possibly handle this through a
@ServerExceptionMapper
and handle theAuthenticationFailedException
directly. If that's the case, is there an easy way to map a Qute template to aResponse
Beta Was this translation helpful? Give feedback.
All reactions