Handling JWT token in multiple services

可紊 提交于 2019-12-08 06:01:44

问题


I'm working on a system where it access few rest APIs and we use JWT toke based authentication. Is it possible to use same token across all services ? If yes, how


回答1:


Token can be used (by "used", I mean consumed) across different services as long as they use the same token provider to validate the token.

In fact, token is supposed to be short-lived for security purpose. So in real, you will just use one-time token to establish the user session. And based on the user session, you will do different service handling accordingly.

Let me know if this makes sense.



来源:https://stackoverflow.com/questions/44758063/handling-jwt-token-in-multiple-services

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!