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

如果是微服务的话,是不是每个微服务都的写一套这样的shiro? #22

Closed
lbin2012 opened this issue May 15, 2019 · 3 comments

Comments

@lbin2012
Copy link

我参考了你的代码,把用户认证单独放在一个微服务里,那这样其他微服务是不是都要有token认证和鉴权?

@lbin2012
Copy link
Author

token的刷新问题,如果前面一个请求刚好刷新了token,redis里的refresh_token刷新了,这时候刚好来了一个老的请求,岂不是会认证失败跳转到首页

@dolyw
Copy link
Owner

dolyw commented May 15, 2019

微服务的话网关统一鉴权吧,这样就不要每个都写,或者还有更好的方式,你可以查资料找找

@dolyw
Copy link
Owner

dolyw commented May 15, 2019

#14 重复请求会不会生成多个token 你看下这个,对于这块说同时发出请求,第一个请求刷新Token的问题,我大概想了一下,查了一些资料,看了下好的实现方式是这样的,下面有链接

@dolyw dolyw pinned this issue May 15, 2019
@dolyw dolyw closed this as completed May 15, 2019
@dolyw dolyw reopened this May 17, 2019
@dolyw dolyw closed this as completed Aug 26, 2019
@dolyw dolyw unpinned this issue Jan 3, 2020
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

2 participants