Reputation: 439
I was reading about Microservices in django , and came to know in Microservices we keep small services separately and they can operate individually . if I am not wrong about this concept how I will validate using JWT token from a user from one Database to use that in 2nd Microservices ? ?
Upvotes: 4
Views: 1804
Reputation: 106
In typical JWT concept you have auth server(AC) and multiple resources servers(your domain µservices), and flow looks like:
Your clientA may also be another µservice. Your µserviceA knows the user's roles from jwt token (after decoding) and simply can block request when roles are not appropriate.
Upvotes: 8