Show nice error message when session expired / invalid token
Posted: Wed Jun 04, 2014 5:09 am
by ArloL
Currently when the csrf token is invalid you will get a ServiceException resulting in the default error handling of the application server which is not particularly beautiful.
Can this be extended somehow?
Re: Show nice error message when session expired / invalid token
Posted: Wed Jun 04, 2014 1:32 pm
by phillipuniverse
Yeah this is an open ticket at
https://github.com/BroadleafCommerce/Br ... issues/518. You can definitely extend this to do something different by overriding the bean:
Code: Select all
<bean id="blCsrfFilter" class="com.yourcompany.site.web.CustomCsrfFilter" />
We would love to see a comment on that ticket with a potential solution.
Re: Show nice error message when session expired / invalid token
Posted: Thu Jun 05, 2014 2:36 am
by ArloL
Thanks for your reply. I commented on the issue.