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
- Host: GitHub
- URL: https://github.com/dgf/coffee-authorization
- Owner: dgf
- License: other
- Created: 2012-02-01T10:39:12.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-04T01:56:27.000Z (over 14 years ago)
- Last Synced: 2025-01-23T06:11:56.225Z (over 1 year ago)
- Language: CoffeeScript
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |
|_______________| |_______________|