Hi, I'm developing a GWT+Spring application and I'm having hard times integrating GWT with Spring Security system.
Services are protected by spring security and response with 401 for un-authenticated users (anonymous) and 403 for unauthorized access. My problem here is that I can not make failed AsyncRequests handle those errors the way I want without typing again and again onFailure boilerplate stubs for that handling.
I've managed to develop my own filter for Spring Security that respondes with "authorizeform" header that carries URL of login form for 401 exception.
So the question is: Is there any way to handle 401/403 exceptions globaly without boilerplate onFailure code and redirect to URL from specified header?
Upcoming RequestFactory has something like "AuthenticationFailedHandler" but 2.1 is almost completely undocumented yet and "under rapid developement" so it looks like it's not an option.
Thanks in advance!