(Spring Security Oauth2 :资源服务器在使用jwt token的时候 遇到报错Invalid token does not contain resource id (XXX))
问题描述:
提示:这里描述项目中遇到的问题:
例如:在配置好jwtToken的时候,返回的token在check_token接口上也能被解析,可是在被访问资源的时候,报出这样的错误Invalid token does not contain resource id (XXX))
原因分析:
分析:
例如:其实也没什么分析,网上有很多的原理分析啥的,没必要,根据翻译Invalid token does not contain resource id (XXX)) 无效令牌不包含资源id(XXX)就可以知道,只要把资源id和令牌的密钥一致即可
解决方案:
这样就完美解决了!!!