检查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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)