luk4z7 / Middleware Acl
Licence: bsd-3-clause
middleware-acl Access Control Library RBAC casbin
Stars: ✭ 155
Programming Languages
go
31211 projects - #10 most used programming language
Projects that are alternatives of or similar to Middleware Acl
Zoonavigator
Web-based ZooKeeper UI / editor / browser
Stars: ✭ 326 (+110.32%)
Mutual labels: api, rest, acl
Strapi Plugin Comments
A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
Stars: ✭ 138 (-10.97%)
Mutual labels: api, rest
Negroni Authz
negroni-authz is an authorization middleware for Negroni
Stars: ✭ 152 (-1.94%)
Mutual labels: acl, casbin
Grafanajsondatasource
Grafana datasource to load JSON data over your arbitrary HTTP backend
Stars: ✭ 146 (-5.81%)
Mutual labels: api, rest
Open Rest
Standard rest server, Base on restify and sequelize
Stars: ✭ 136 (-12.26%)
Mutual labels: api, rest
Think Casbin
专为ThinkPHP定制的Casbin的扩展包,Casbin是一个功能强大,高效的开源访问控制库。
Stars: ✭ 138 (-10.97%)
Mutual labels: acl, casbin
Smoke
💨 Simple yet powerful file-based mock server with recording abilities
Stars: ✭ 142 (-8.39%)
Mutual labels: api, rest
Zoomhub
Share and view high-resolution images effortlessly
Stars: ✭ 122 (-21.29%)
Mutual labels: api, rest
Node Express Postgresql Sequelize
Node.js, Express.js, Sequelize.js and PostgreSQL RESTful API
Stars: ✭ 148 (-4.52%)
Mutual labels: api, rest
Sp Rest Proxy
🌐 SharePoint REST API Proxy for local Front-end development tool-chains
Stars: ✭ 147 (-5.16%)
Mutual labels: api, rest
Laravel Authz
An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Stars: ✭ 136 (-12.26%)
Mutual labels: acl, casbin
Aping
angular module to get and display data by adding html-attributes
Stars: ✭ 135 (-12.9%)
Mutual labels: api, rest
Poloniex Api Node
Poloniex API client for REST and WebSocket API
Stars: ✭ 138 (-10.97%)
Mutual labels: api, rest
Subzero Starter Kit
Starter Kit and tooling for authoring GraphQL/REST API backends with subZero
Stars: ✭ 136 (-12.26%)
Mutual labels: api, rest
Postman Bdd
A BDD test framework for Postman and Newman
Stars: ✭ 139 (-10.32%)
Mutual labels: api, rest
Appkernel
API development made easy: a smart Python 3 API framework
Stars: ✭ 152 (-1.94%)
Mutual labels: api, rest
Rest Api Fuzz Testing
REST API Fuzz Testing (RAFT): Source code for self-hosted service developed for Azure, including the API, orchestration engine, and default set of security tools (including MSR's RESTler), that enables developers to embed security tooling into their CI/CD workflows
Stars: ✭ 119 (-23.23%)
Mutual labels: api, rest
Narration
The Narration PHP Framework - Empowering everyone to build reliable and loosely coupled web apps.
Stars: ✭ 119 (-23.23%)
Mutual labels: api, rest
Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (-5.81%)
Mutual labels: api, rest
middleware-acl
Getting started
Clone the repository in folder do you prefer
cd /var/www
git clone https://github.com/luk4z7/middleware-acl
Execute the file init.sh
for up the docker containers
https://github.com/luk4z7/middleware-acl for the canonical source repository
Lucas Alves 2017 (c) Middleware Access Control Library - Authorization API
_ _ _ _ _
_ __ ___ (_) __| | __| | | _____ ____ _ _ __ ___ __ _ ___| |
| '_ ` _ \| |/ _` |/ _` | |/ _ \ \ /\ / / _` | '__/ _ \_____ / _` |/ __| |
| | | | | | | (_| | (_| | | __/\ V V / (_| | | | __/_____| (_| | (__| |
|_| |_| |_|_|\__,_|\__,_|_|\___| \_/\_/ \__,_|_| \___| \__,_|\___|_|
middleware
DOCKER
Generate new containers ? [ 1 ]
Delete all containers ? [ 2 ]
Start new build ? [ 3 ]
Preview the logs ? [ 4 ]
Install dependencies ? [ 5 ]
Update dependencies ? [ 6 ]
First step
Start new build [ 3 ]
Second step
Generate new containers [ 1 ]
Preview the all logs of containers
Preview the logs [ 4 ]
Or access the single container
docker logs api -f
docker logs mongo -f
API REST
Routers
In this examples I using jq for pretty the result, for more information view in : jq
List Role
curl -H "Content-Type: application/json" -X GET http://127.0.0.1:6060/v1/roles | jq
Create Role and User
curl -H "Content-Type: application/json" -X POST -d '{"user":"alice", "role":"visitante"}' http://127.0.0.1:6060/v1/roles | jq
Get role and its permissions
curl -H "Content-Type: application/json" -X GET http://127.0.0.1:6060/v1/roles/alice | jq
Update role (add permissions)
curl -H "Content-Type: application/json" -X PUT -d '{"user":"alice", "permission": "read"}' http://127.0.0.1:6060/v1/roles | jq
Delete role
curl -H "Content-Type: application/json" -X DELETE http://127.0.0.1:6060/v1/roles/administrador | jq
List user roles
curl -H "Content-Type: application/json" -X GET http://127.0.0.1:6060/v1/users/alice/roles | jq
Remove role from user
curl -H "Content-Type: application/json" -X DELETE http://127.0.0.1:6060/v1/users/alice/roles/visitante3 | jq
Check user permission
curl -H "Content-Type: application/json" -X GET http://127.0.0.1:6060/v1/users/alice/resource/data1/permission/read | jq
Tests
Access the container
docker exec -it api bash
cd /go/src/middleware
and execute this:
./coverage.sh --html
and so, the file html
is generated, only copy the file for the current directory
cp /tmp/cover314639520/coverage.html .
Access the html file inside the project folder outside the container
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].