Bad credentials,Not granted any authorities.
对照过,用户名没错,密码没错,客户端id没错,客户端密码没错。
如下,cacheWasUsed=false,抛出错误了
try {
this.preAuthenticationChecks.check(user);
this.additionalAuthenticationChecks(user, (UsernamePasswordAuthenticationToken)authentication);
} catch (AuthenticationException var7) {
if (!cacheWasUsed) {
throw var7;
}
从哪里登录哪里? 什么操作系统?
问题根源找到了,从字面意思来看,就是密码错误的意思,debug程序发现果然是BCryptPasswordEncoder执行matchs方法时候,原始密码和哈希密码匹配不过,这才回想起,程序这边对原始密码进行2次哈希编码,修改程序后对rawPassword进行一次哈希encode就好了,修改后再次请求accessToken就可以了。