
io.smsc.jwt.JwtAuthenticationSuccessHandler Maven / Gradle / Ivy
package io.smsc.jwt;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Defines where to go after successful login. In this implementation just make sure nothing is done (REST API contains no pages)
*
* @author Nazar Lipkovskyy
* @since 0.0.1-SNAPSHOT
*/
public class JwtAuthenticationSuccessHandler implements AuthenticationSuccessHandler {
/**
* Called when a user has been successfully authenticated.
*
* Implementation of basic {@link org.springframework.security.web.authentication.AuthenticationSuccessHandler#onAuthenticationSuccess
* (HttpServletRequest, HttpServletResponse, Authentication)} method
*
* @param request the request which caused the successful authentication
* @param response the response
* @param authentication the Authentication object which was created during
* the authentication process.
*/
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {
// In this implementation just make sure nothing is done
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy