The Custom Authentication Success Handle
·
Programming/Spring
Typically these implementations will determine the URL after login and perform a redirect to that URL. This implementation is going to determine the URL to redirect the user to after login based on the role of the user. First of all, we need to override the onAuthenticationSuccess method: public class MySimpleUrlAuthenticationSuccessHandler implements AuthenticationSuccessHandler { protected Log..