检查token的接口无法使用
此接口没有允许,默认是不允许访问
方法一
// AuthorizationServerConfigurerAdapter
@Override
public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
//允许表单认证
oauthServer.allowFormAuthenticationForClients();
oauthServer.checkTokenAccess("permitAll()");
}
方法二
security.oauth2.authorization.check-token-access=permitAll()
参考 https://stackoverflow.com/questions/26750999/spring-security-oauth2-check-token-endpoint