gopheracademy / congo

Conference Management Software for Conference Organizers
MIT License
107 stars 16 forks source link

Role based access control #11

Open bketelsen opened 9 years ago

bketelsen commented 9 years ago

Openshift/Origin has a nice policy system based on JSON files/Go structs, there are also several pre-built packages for PostgreSQL based RBAC in Go.

yllierop commented 9 years ago

@bketelsen I typically like to use: https://github.com/mikespook/gorbac these days.

bketelsen commented 9 years ago

excellent.

hsluoyz commented 7 years ago

Hi @preillyme @bketelsen , I'm the author of casbin. It is an authorization library that supports models like MAC, RBAC, ABAC.

Compared to GoRBAC, casbin has several advantages:

  1. support resource roles, so users have their roles and resource have their roles too. role = group here.
  2. the permission assignments (or policy in casbin's language) can be persisted in files or database.

Let me know if encountered any issue with casbin:)