Casbin = way to authorization
A place for Casbin developers and users
Sign Up Now
For Existing Member  Sign In
Choose theme
Default ✅
v2ex-zhihu-theme 
admin
Casnode  ›  问与答

RBAC模型下如何默认放行呢

  •  
  •  
    admin · 2 years ago · 148 hits 
    This is a topic created 674 days ago, the information in it may have changed.

    比如我有 100 个 api,我只希望对其中 n 个做权限管理,其他的都默认放行,这种情况下如何实现呢?

    比如 policy: p, role1, /api1, POST p, role1, /api2, POST

    除了这两个 api,需要根据角色 / 用户来确认是否有权限,其他的 api 访问都默认放行。

    148 hits  ∙  0 favorites  
      Tweet Weibo Ignore 
    No reply yet
    About   ·   FAQ   ·   API   ·   Mission   ·   Advertise   ·   Thanks   ·   Tools   ·   20 Online   Highest 40   ·     Select Language  ·     Select Editor
    Community of Creators
    World is powered by code
    VERSION: 2c477f2 · 12ms · UTC 15:50 · PVG 23:50 · LAX 08:50 · JFK 11:50
    ♥ Do have faith in what you're doing.