An open API service indexing awesome lists of open source software.

https://github.com/dgf/coffee-authorization

simple authorization implementation on coffee
https://github.com/dgf/coffee-authorization

Last synced: over 1 year ago
JSON representation

simple authorization implementation on coffee

Awesome Lists containing this project

README

          

# CoffeeScript Authorization Example

simple authorization template and specification

git clone ...
npm install
npm test

## example declaration of a glossary

_______________
| << scope >> |
authorize = new Authorization 'glossary' | Authorization |
|_______________|
|
______|________
| |
authorize.role 'user', (role) -> | Role |
|_______________|
|
______|________
| << builder >> |
role.permit ['edit','delete'], (user, term) -> | Permission |
|_______________|
true if term.owner == user.login |
_______________ ______|________
| | | << list >> |
| Condition |_____| Action |
|_______________| |_______________|