Rokkuto is auth web service.
Features in version v1:
- adding component to a rokkuto db
- share that component with users that doesn't have access to your application
- fork the repo
- then
bundle install
- run it with
foreman start
- creating an object:
POST /api/v1/auth_object/
{
"api_key" : "89e652f5c52704f6a9f86bc608df5b22",
"content_id" : "7",
"content_type" : "link",
"email" : "[email protected]",
"permissions" : "rwx"
}
- giving access rights:
POST /api/v1/access/
{
"api_key" : "89e652f5c52704f6a9f86bc608df5b22",
"content_id" : "7",
"content_type" : "link",
"email" : "[email protected]",
"to" : {
"[email protected]" : "rw",
"[email protected]" : "rwx",
"[email protected]" : "r"
}
}
- check if token exists(i.e. valid access rights)
GET /api/v1/access/:token/?api_key=:api_key
If it returns an auth_object then access rights are valid