檢查token的接口無法使用
此接口沒有允許唯欣,默認(rèn)是不允許訪問
方法一
// AuthorizationServerConfigurerAdapter
@Override
public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
//允許表單認(rèn)證
oauthServer.allowFormAuthenticationForClients();
oauthServer.checkTokenAccess("permitAll()");
}
方法二
security.oauth2.authorization.check-token-access=permitAll()
參考 https://stackoverflow.com/questions/26750999/spring-security-oauth2-check-token-endpoint