实现AuthorizationServerConfigurerAdapter,进行认证配置
- 开启允许客户端表单认证
- 配置TokenEndpoint(令牌端点)允许的请求方法
源码片段
@Configuration
@EnableAuthorizationServer
protected class AuthorizationServerConfiguration extends AuthorizationServerConfigurerAdapter {
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
endpoints.re