Skip to content

An example of using Casbin to implement a role-based access control system

Notifications You must be signed in to change notification settings

jeff-bonevich/go-casbin-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Casbin Example

This repository contains an example of using the Go Casbin client to implement a simple role-based access control system for two users, Alice and Bob.

$ go run main.go
alice is a member of the following roles: [role:admin], and her permissions are: [[role:admin data read] [role:admin data write]]
bob is a member of the following roles: [role:user], and his permissions are: [[role:user data read]]

About

An example of using Casbin to implement a role-based access control system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%