问题
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