Created
January 4, 2022 19:25
-
-
Save sjohnr/929c1402b077b3b891158c6785b8324c to your computer and use it in GitHub Desktop.
ContinueFilterChainAuthenticationSuccessHandler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.security.core.Authentication; | |
import org.springframework.security.web.authentication.AuthenticationSuccessHandler; | |
public class ContinueFilterChainAuthenticationSuccessHandler implements AuthenticationSuccessHandler { | |
@Override | |
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain, Authentication authentication) throws IOException, ServletException { | |
filterChain.doFilter(request, response); | |
} | |
@Override | |
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException { | |
throw new UnsupportedOperationException(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment