{"id":19664430,"url":"https://github.com/ljnath/rbac","last_synced_at":"2026-06-09T18:31:59.430Z","repository":{"id":167806845,"uuid":"194205055","full_name":"ljnath/RBAC","owner":"ljnath","description":"Role Based Authentication Control","archived":false,"fork":false,"pushed_at":"2019-06-28T04:16:36.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-20T18:26:24.577Z","etag":null,"topics":["authentication","python","python3","rbac","rbac-management","role-based-access-control","roles"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ljnath.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":"2019-06-28T04:16:30.000Z","updated_at":"2023-11-23T11:19:43.000Z","dependencies_parsed_at":"2023-09-18T18:30:28.367Z","dependency_job_id":null,"html_url":"https://github.com/ljnath/RBAC","commit_stats":null,"previous_names":["ljnath/rbac"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ljnath/RBAC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRBAC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRBAC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRBAC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRBAC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljnath","download_url":"https://codeload.github.com/ljnath/RBAC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRBAC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34121021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["authentication","python","python3","rbac","rbac-management","role-based-access-control","roles"],"created_at":"2024-11-11T16:17:47.658Z","updated_at":"2026-06-09T18:31:59.410Z","avatar_url":"https://github.com/ljnath.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## RBAC (Role Based Access Control)\n### Lakhya Jyoti Nath (ljnath) | June 16th, 2019\n\n#### Introduction\nThis is a RBAC solution developed in python3.\nIt is developed to authenticate if a user has permission to perform a ACTION-TYPE (read/write/delete) in some given resources\n\nThe following features of an application are considered as resources\n* DEVICE-MANAGEMENT - This will allow user to work on device management (E.g.: AWS portal where EC2 can be a device)\n* DASHBOARD - The AWS portal UI can be considered as DASHBOARD\n* ADMINISTRATION - Admnistrating the AWS account can be considered.\n\n#### Code walkthrough\n* AuthenticationSytem\\\n    * handlers\\\n        * entity\\__init__.py - EntityHandler : Abstract entity handler class which needs to be implemented by child entity classes. Contains abstract method populate() and get()\n        * entity\\role.py - RoleEntiryHandler : Class to handles roles activity like populating default roles and exposing the roles. It is interited from EntityHandler class\n        * entity\\user.py - UserEntiryHandler : Class to handle user activity like creating a collection of users and exposing those. If you want to try with more users, you can add those in the populate_default() method\n        * exception.py - AuthenticationSystemExceptionHandler : Base exception handling class. Other exception class inherits from this. The exception logger is created here and re-used in child classes. This file contains a total of 6 exception handling classes.\u003cbr\u003e\n        It contains these classes\n            * MissingEntityException - Exception is raised if any entity is missing. It accepts 2 paramters and it acts as parent class for the following\n                * MissingUserException\n                * MissingResourcesException\n                * MissingActionTypeException\n            * NoneValueException - Exception is raised if any value is of None type\n        * log.py - Class for handling logs and logging. It contains a static method 'get_logger' which accepts the logger name and returns an instance of logging to the calling method.\n        * validation.py - Validation class for data validation before processing\n    * models\\\n        * action_type.py - Contains an enumerator with all available ACTION TYPES\n        * resources.py - Contains an enumerator with all avilable RESOURCES\n        * role.py - Contains the models of a role. It will have a name, resource and action-type\n        * user.py - Contains the models of a user. It will have a name and a list of roles\n    * service\\\n        *authentication.py - AuthenticationService class contains a single method authenticate() which takes user, resource and action-type as per the problem description. It validates the input, does the role comparision and returns the authentication status. It also logs the result to file.\n* driver.py - Driver class uses the AuthenticationSytem. It first lists all available users with thier permission. Next it prompts you to select user, resources and action-type. It authenticates your choices using AuthenticationSytem and displays the result\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljnath%2Frbac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljnath%2Frbac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljnath%2Frbac/lists"}