Git Product home page Git Product logo

easyrbac's People

Contributors

dependabot[bot] avatar uliian avatar wushilong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyrbac's Issues

Support Casbin.NET as the authorization backend

Casbin.NET is an authorization library that supports models like ACL, RBAC, ABAC.

Related to RBAC, casbin has several advantages:

  1. roles can be cascaded, aka roles can have roles.
  2. support resource roles, so users have their roles and resource have their roles too. role = group here.
  3. the permission assignments (or policy in casbin's language) can be persisted in files or database.
  4. multiple models like ACL, BLP, RBAC, ABAC, RESTful are supported.

And you can even customize your own access control model, for example, mix RBAC and ABAC together by using roles and attributes at the same time. It's very flexible.

I saw there's a DB connection need here: #5, and I think Casbin.NET is a good choice to solve it as it supports a lot of DBs with simple configuration. The DB table can be synced automatically. What do you think? Thanks.

资源与用户关联

资源与用户关联,个人认为这是一个图省事和偷懒的设计。因为用户与角色已经有一种关系,而角色与资源也有一种关系,完全可以实现这样的关联设计。而通过资源与用户直接关联,跨过这种设计有关系,一是在设计上是冗余的;二是在设计上也显得有些混乱;用户完全是有一种角色的,只要是存在于系统当中,否则他是一种凭空的存在吗?这是比强牵强的,设计线还是要清晰比较好。

请完善相关Markdown的描述

项目捣鼓着跑起来了,但是有很多细节的东西没有描述。
例如

  1. 运行环境 :.NET Core + MySql;
  2. 登陆账号密码
  3. 前后端项目运行的步骤
  4. 相关RBAC设计理念介绍。

如果有关联博文的话,是否可以发个链接学习一下?

无法正常运行

刚开始报:表“application_callback_config"不存在,后来根据Model手动建立了,但用admin登录,返回:{"callbackUrl":null,"callbackType":null}。
页面提示“APPCode错误”,请问需要怎么设置?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.