Remember me in Spring security to remember only user-name -
I am using Spring Security in my application and want to know if there is any way to ask "just" The user's username that comes on the application (remember - through the checkboxes) that I can collect from the reference document is that Spring can save the user's username and password, and next time it can log directly. is. But I want that every time the user takes back the login page, but has already been typed with his user name.
If there is no way to do this in the spring, then I
Itemprop = "text">
Therefore, you need to set a cookie username after authentication, and access it during the presentation of the login page.
If you use Spring Protection 3.x, former AuthenticationSuccessHandler
( SavedRequestAwareAuthenticationSuccessHandler
is the default implementation) and response.addCookie () By setting a cookie with
, it can be done by subclassing.
There is a regular cookie access ( request.getCookies ()
, etc.).
Comments
Post a Comment