I would like to provide user possibility to select application language on login. But since we are using spring security I am really not sure how to get selected language parameter from request parameters?
Is there any way to intercept spring security authentication process without modifying the process itself (cause I have found some examples with custom authentication, but I don’t need that at the moment)?
Or what would be the best practise to retrieve request parameter before it is redirected further? Thanks.
You can setup your own (instead of default) Authentication Success Handler at
resources.groovy:where
MyAuthenticationSuccessHandleris class that implementsAuthenticationSuccessHandler, or better to extendsAjaxAwareAuthenticationSuccessHandlerthat is used by default, like:This class have access to actual request at: