Group/rule-based authorization approach in node.js and express.js

后端 未结 6 1592
鱼传尺愫
鱼传尺愫 2021-01-30 00:31

What are good strategies for role-based authorization in express.js? Especially with express-resource?

With Express-resource there are no handlers, so I think there are

6条回答
  •  星月不相逢
    2021-01-30 00:53

    You can try Casbin: https://casbin.org/, it has a Node.js version. It also has a Express.js middleware called express-authz: https://casbin.org/docs/en/middlewares

提交回复
热议问题