Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微服务之间调用免Token方案的问题 #4683

Closed
towelong opened this issue Mar 14, 2023 · 3 comments
Closed

微服务之间调用免Token方案的问题 #4683

towelong opened this issue Mar 14, 2023 · 3 comments

Comments

@towelong
Copy link

版本号:

3.4.4

前端版本:vue3版?还是 vue2版?

vue2

问题描述:

微服务之间调用免Token方案,我设置了临时令牌,并且令牌能被存入Redis,但是FeignConfig并不会走如下截图的逻辑
image

截图&代码:

image

日志如下:
image

@lch245298
Copy link

同问,我也是这个问题

@towelong
Copy link
Author

同问,我也是这个问题

我这边解决了,需要你自己去改这个FeignConfig
思路就是:
image
把这个地方token为null的时候,用UserTokenContext再取一遍

@zhangdaiscott
Copy link
Member

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants