用户从应用程序注销后进行令牌验证
据我正确理解,来自一些资源,例如 RemoteJWT缓存TTL, Spring 将 JWK 集缓存在资源服务器中,以最大限度地减少对授权服务器的远程调用,以对每个 API 调用进行令牌验证。 Spring 的默认 TTL 为 5 分钟,我们也可以增加该值。
不过,我对此有一些疑问:
- 如果用户成功从客户端应用程序注销并使用相同的 JWT 令牌访问资源服务器 API,并且资源服务器端 TTL 尚未过期,会发生什么情况。他们是否仍然能够访问 API?
如果我的理解有误,请纠正我,并提出您的想法。如果有好的资源,请分享。谢谢!
As I understood correctly, from few resources like RemoteJWT Cache TTL,
Spring cached the JWK set in Resource Server for minimising the remote call to Authorisation Server for token verification to each API call. And Spring have default TTL for that is 5 mins, which we can increase as well.
However I've some queries on same:
- What happens if user successfully logged out from client application and hit the resource server API with same JWT token and from Resources Server end TTL doesn't expired yet. Does they still able to access API.
Please correct me if my understanding is wrong and also give your thought on same. And if good resource on that, please do share. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论