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

微服务 - 内部服务外网隔离问题 #713

Open
15213222722 opened this issue Dec 4, 2024 · 0 comments
Open

微服务 - 内部服务外网隔离问题 #713

15213222722 opened this issue Dec 4, 2024 · 0 comments

Comments

@15213222722
Copy link

使用版本:

1.39.0

涉及的功能模块:

sa-token集成网关,[微服务 - 内部服务外网隔离]

  • 我经过以下步骤测试:
    网关增加
    image
    子服务增加
image 查看源码 image image 这里currentToken的判断为空时调用refreshToken方法,但refreshToken方法内部sameToken不为空时才会写入xxx:var:past-same-token到redis,实际上currentToken和sameToken变量获取的值是同一个,这里是否矛盾了?如果currentToken为空,永远都不会写入xxx:var:past-same-token到redis,导致子服务在验证sameToken时,获取的past-same-token为空,子服务校验不通过
  • 得出以下结果:
    子服务在验证sameToken时,获取的past-same-token为空,子服务校验不通过

  • 其中第 xx 行的代码输出表现 和文档上描述的不一致:

  • 我的理解是:

请问,是我的理解不对,还是文档出了问题?

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

1 participant