Customize OAuth2 error response on client authentication with Spring Security
问题 While this seems to be an easy task, it turns out the opposite. I'm trying to customize the error handling for OAuth2 client authentication requests. The purpose of this is to remove the exception stacktrace/message from the response message. Context vanilla Oauth2 Spring Security implementation Java Spring configuration Steps taken to accomplish the task Create a custom implementation of OAuth2ExceptionRenderer Create a @Bean instance of OAuth2AuthenticationEntryPoint @Bean public