Authorisation in microservices - how to approach domain object or entity level access control using ACL?

前端 未结 1 1485
旧巷少年郎
旧巷少年郎 2021-02-05 11:57

I am currently building microservices based system on java Spring Cloud. Some microservices use PostgreSQL and some of them MongoDB. REST and JMS is used for communication. The

相关标签:
1条回答
  • 2021-02-05 12:32

    I don't have a full and clear picture of your authorization requirements. I'm assuming a correlation between authenticated users and domain object/entity permissions.

    One option to consider is to define user attributes corresponding to your domain object/entity permissions, and implement an Attribute-based Access Control (ABAC) policy.

    The attributes are tied to and stored with the users identity in your repository, and retrieved when performing your authentication.

    0 讨论(0)
提交回复
热议问题