用feign 访问oauth2的微服务说未授权怎么回事

登录可以,调用删除token的就报错
登录可以调用删除token的就报错

feign.FeignException$Unauthorized: [401] during [GET] to [http://oauth2-server/oauth/removeToken?token=f6f58fa6-96b0-4c8a-a6af-bab408581e7d] [FeignConfig#removeToken(String)]: [{"error":"unauthorized","error_description":"Full authentication is required to access this resource"}]

img

img

img

img

img

居然用的 edge

删除接口。header Authorization带上token了么,没放行的资源需要进行校验,可以帮你看看

你确定removeToken是GET请求吗?
一般是POST或者DELETE请求

removeToken是POST

antMatchers里试一下完整路径,看看是不是匹配的问题