Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casbin/openstack-policy-editor
A Casbin Policy Editor for OpenStack
https://github.com/casbin/openstack-policy-editor
abac access-control acl auth authorization authz casbin editor openstack rbac
Last synced: 2 days ago
JSON representation
A Casbin Policy Editor for OpenStack
- Host: GitHub
- URL: https://github.com/casbin/openstack-policy-editor
- Owner: casbin
- License: mit
- Created: 2018-06-21T01:15:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-12T12:38:01.000Z (over 3 years ago)
- Last Synced: 2024-10-29T10:07:53.421Z (13 days ago)
- Topics: abac, access-control, acl, auth, authorization, authz, casbin, editor, openstack, rbac
- Language: JavaScript
- Homepage: https://cloud.casbin.org/
- Size: 9.41 MB
- Stars: 32
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# News: see our latest Casbin dashboard called Casdoor: https://github.com/casbin/casdoor
# Casbin Web UI
A portal & RESTful API for Casbin: https://cloud.casbin.org/## API
1. GET ``/tenants``: Get all tenants, each tenant has an ID and a name.
2. GET ``/tenants/``: Get the ``metadata.json`` for a tenant ````.
3. GET ``/tenants//policies/``: Get the ``xxx.csv`` policy for a tenant ````.
4. POST ``/tenants/``: Set the ``metadata.json`` for a tenant ````.
5. POST ``/tenants//policies/``: Set the ``.json`` for a tenant ````.
6. GET ``/tenants//users``: Get all users for a tenant ````.
7. GET ``/tenants//users//commands``: Get all commands that can be run by the user ```` of tenant ````.
8. GET ``/tenants//users//commands/``: Run command ```` as the user ```` of tenant ````.
9. GET ``/reset``: Reset all data to the initial state.## Examples
#### Policy
1. https://cloud.casbin.org/tenants
2. https://cloud.casbin.org/tenants/tenant1
3. https://cloud.casbin.org/tenants/tenant1/policies/custom-policy.csv#### Model
1. https://cloud.casbin.org/models/enable_model.conf
2. https://cloud.casbin.org/models/restrict_model.conf
3. https://cloud.casbin.org/models/custom_model.conf#### User
1. https://cloud.casbin.org/tenants/admin/users
2. https://cloud.casbin.org/tenants/tenant1/users#### Command
1. https://cloud.casbin.org/tenants/admin/users/admin/commands
2. https://cloud.casbin.org/tenants/admin/users/admin/commands/nova%20service-list
3. https://cloud.casbin.org/tenants/tenant1/users/user1/commands/nova%20service-list
4. https://cloud.casbin.org/tenants/tenant1/users/user1/commands/nova%20list
5. https://cloud.casbin.org/tenants/tenant1/users/user2/commands/nova%20list