Skip to content

👻 A simplified role-based access control (RBAC) implementation.

License

Notifications You must be signed in to change notification settings

WindomZ/go-rbac

Repository files navigation

go-rbac

Build Status License Coverage Status

A simplified role-based access control (RBAC) implementation, inspired by gorbac

v1.0.0 status

Purpose

  • Only three objects: identity, role and permission
  • One to many relationship between identity and roles.
  • One to many relationship between role and permissions.
  • One to many relationship between role and parent roles(inheritance relationship).

Features

  • An identity has one or more roles.
  • A role has one or more permissions.
  • A role can inherit one or more other roles(inheriting their permissions).
  • Both identity, role, permission are defined by ID string.
  • Native and no third party library dependent, except unit testing

Installation

go get -u github.com/WindomZ/go-rbac

License

The MIT License

About

👻 A simplified role-based access control (RBAC) implementation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages