https://www.jianshu.com/p/c1297003c903
检查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
作者:小狐记忆
链接:https://www.jianshu.com/p/c1297003c903
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。