I need to store actual date in DB after a successful user login. How to do that ? Filter, handler or something ? Need help.
AuthenticationEntryPoint is used in Spring Web Security to configure an application to perform certain actions whenever an unauthenticated client tries to access private resources.
public class AuthenticationSuccessHandlerImpl extends SimpleUrlAuthenticationSuccessHandler {
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
throws IOException, ServletException {
//your code here
}
}
config:
<beans:bean id="authSuccessHandler"
class="your.pachage.decleration.AuthenticationSuccessHandlerImpl"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With