You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add more detail if you feel this is a genuine bug.
Summary
AuthenticationEntryPoint commence method Why is it executed twice
Actual Behavior
throw new UsernameNotFoundException , AuthenticationEntryPoint commence method Why is it executed twice
Expected
Behavior
Configuration
Version
spring-boot-starter-security 2.2.2.RELEASE
Sample
public class MyAuthenticationEntryPoint implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) throws IOException { String msg = Objects.nonNull(e) ? e.getMessage() : "Unauthorized"; response.sendError(HttpServletResponse.SC_UNAUTHORIZED, msg); } }
The text was updated successfully, but these errors were encountered: