Casbin = way to authorization
A place for Casbin developers and users
现在注册
已注册用户请  登录
主题样式选择
默认主题样式 ✅
知乎主题样式 
hsluoyz
hsluoyz

@Kingside

  1. Create Users in e.g Table User

see: https://casbin.org/docs/en/overview#what-is-casbin Casbin doesn't maintain user list table because it's too customized.

  1. Create Role in e.g. Table Role

Call API: GetAllRoles() https://casbin.org/docs/en/management-api#getallroles

  1. Create Rights in e.g. Table Right

Call a lot of APIs like: https://casbin.org/docs/en/management-api#getpolicy

  1. Assign Rights to Roles in e.g. Table Role_Right

Call a lot of APIs like: https://casbin.org/docs/en/management-api#getpolicy

  1. Assign Users to Roles in e.g. Table Role_User

Call: https://casbin.org/docs/en/management-api#getgroupingpolicy

Casbin doesn't use the "classic" 5 table model.

关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   51 人在线   最高记录 52   ·     选择语言  ·     选择编辑器
创意工作者们的社区
World is powered by code
VERSION: c3b0ae8 · 0ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
♥ Do have faith in what you're doing.