SpringSecurity+OAuth2认证/oauth/token登录报错There is no client authentication
报错信息:
{
"error": "unauthorized",
"error_description": "There is no client authentication. Try adding an appropriate authentication filter."
}
找到这个问题原因后,发现自己被自己蠢哭了。
在自己的核心配置类里,把这个/oauth/token加入到忽略认证的路径里,这样还有个毛线的过滤器,
而springsecurity的核心就是过滤器,这样肯定是不行的。
把圈红部分去掉即可。
🐞标题:SpringSecurity+OAuth2认证/oauth/token登录报错There is no client authentication
👽作者:ruige
🐾地址:https://jjdhhc.com/articles/2020/10/23/1603455925341.html
🙏感恩:谢谢您的打赏与支持!中间图片是我的微信公众号,扫码关注哦!


