DEV Community

Discussion on: Authentication & Authorization in Microservices Architecture - Part I

Collapse
 
caojs profile image
caojs

Great post, seperating authentication and authorization is a right approach in microservices. What do you think if I add RBAC with domains/tenants in authentication? Example:

[PUT] /domainA/user/profile

  1. Login to authentication service and get JWT token which contains identity and user's roles in domainA
  2. Send JWT to domainA service, roles are checked in here.
Collapse
 
mehdicharife profile image
Mehdi Charife

In the example, would domainA service check for the validity of the token?