{"id":23533087,"url":"https://github.com/imarsman/rbac","last_synced_at":"2025-05-14T16:34:45.101Z","repository":{"id":133060189,"uuid":"363184504","full_name":"imarsman/rbac","owner":"imarsman","description":"An implementation of role-based authentication using Casbin. Allows for pluggable definition of enforcement rules separate from very simple roles package with useful tests that demonstrate basic functionality with benchmarks.","archived":false,"fork":false,"pushed_at":"2021-05-01T16:22:14.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T05:11:18.540Z","etag":null,"topics":["authorization","rbac","rbac-roles"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imarsman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-30T15:34:38.000Z","updated_at":"2021-05-07T01:50:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"1024aeb9-f360-44ff-ade1-5178ba149b3e","html_url":"https://github.com/imarsman/rbac","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarsman%2Frbac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarsman%2Frbac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarsman%2Frbac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarsman%2Frbac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imarsman","download_url":"https://codeload.github.com/imarsman/rbac/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254183291,"owners_count":22028470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authorization","rbac","rbac-roles"],"created_at":"2024-12-25T23:13:46.181Z","updated_at":"2025-05-14T16:34:45.082Z","avatar_url":"https://github.com/imarsman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RBAC - Role Based Access Control\n\nA simple role-based authentication framework to allow for the use of a Casbin\npolicy and model configuration with verifications. The setup assumes that users\nare defined outside of the policy and that they have a list of known roles that\ncan be tested against the policy.\n\nThe roles_test package gives an example of defining a model and policy, defining\nthe objects, actions, and roles (instead of users), and loading the model and\npolicy in the roles package. The tests show how to call the role check and give\nan example of how to use a struct to define an object and action to test against\na list of roles, for instance, with HTTP middleware.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimarsman%2Frbac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimarsman%2Frbac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimarsman%2Frbac/lists"}