https://github.com/hachreak/oauth2_scope_strategies
A compilation of scope strategies for oauth2
https://github.com/hachreak/oauth2_scope_strategies
Last synced: 28 days ago
JSON representation
A compilation of scope strategies for oauth2
- Host: GitHub
- URL: https://github.com/hachreak/oauth2_scope_strategies
- Owner: hachreak
- License: gpl-2.0
- Created: 2016-06-16T21:36:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T21:29:03.000Z (over 8 years ago)
- Last Synced: 2025-02-16T22:27:54.505Z (8 months ago)
- Language: Erlang
- Size: 36.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
oauth2_scope_strategies
=======================[](https://travis-ci.org/hachreak/oauth2_scope_strategies)
A compilation of scope strategies to be able to implement a `backend` for
the `oauth2` library.You can use them to implement the `verify_scope()` callback for the
[oauth2](https://github.com/kivra/oauth2) library.To find an usage example, look the project
[oauth2_mongopool](https://github.com/hachreak/oauth2_mongopool).Strategies
----------* [`oauth2_scope_strategy_simple`] A scope is implemented as a set and loosely
modeled after the Solaris RBAC priviliges, as done in oauth2 library.* [`oauth2_scope_strategy_fq`] A scope is implemented as a tuple
`{action, object_path}`. This permit a more accurate permission check
because you can separate privileges of `read` and `write`.Build
-----$ rebar3 compile