Closed xuxiaowei-com-cn closed 2 years ago
This function is used to customize the handling of exceptions in password mode
How to use
@Override
public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {
// Customize OAuth2AuthenticationEntryPoint
OAuth2AuthenticationEntryPoint authenticationEntryPoint = new TokenOAuth2AuthenticationEntryPoint();
// Set OAuth2AuthenticationEntryPoint
security.setOauth2AuthenticationEntryPoint(authenticationEntryPoint);
security.allowFormAuthenticationForClients();
}
@xuxiaowei-com-cn This project has reached it's end-of-life. Please see latest announcement.
Support custom OAuth2AuthenticationEntryPoint when accessing "/oauth/token"