title: Spring Security - retrieve user IP, browser info and requested page
body: <p>We use <code>RequestHeaderAuthenticationFilter</code> as to implement pre-authentication strategy and <code>PreAuthenticatedAuthenticationProvider</code> as the authentication provider. One of the requirements is to store all successful logins to the database with following information. As user IP address and other request related info is not available in <code>UserDetailsService</code> class, what is the best strategy to retrieve this info and store in db?</p>