Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset a Keycloak authentication flow and display a message or error message?

Tags:

keycloak

Within a custom authentication flow SPI, you can reset the entire flow simply returning

context.resetFlow();

in e.g. an action method.

However, can you attach a message or attribute when resetting the flow, basically passing it into the Freemarker UI upon reset?

like image 493
eja Avatar asked Dec 06 '25 02:12

eja


1 Answers

context.forkWithErrorMessage(new FormMessage('label', 'Your error message here'));
like image 143
Metafr Avatar answered Dec 09 '25 21:12

Metafr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!