Commit Graph

12 Commits

Author SHA1 Message Date
Andrew Lytvyn 92e6fec6f5 is_anonymous, login_required, has_permission helpers (#114)
* add is_anonymous helper function and login_required, has_permission decorators

* add docs for `is_anonymous`, `login_required` and `has_permission` functions

* permission can be `enum.Enum` object; cover with tests

* isort fix
2017-11-17 17:51:40 +02:00
Andrew Svetlov ebf4fd9375 Add couple assertions and short-cut 2015-11-20 13:39:10 +02:00
Andrew Svetlov ab81d73c34 Clarify type for permission parameter 2015-11-11 01:30:41 +02:00
Andrew Svetlov e9065305ad Merge branch 'master' of github.com:aio-libs/aiohttp_security 2015-11-02 22:29:11 +02:00
Andrew Svetlov d4c6dc8ff5 Work on documentation 2015-11-02 22:28:10 +02:00
Andrew Svetlov 996361c233 Docs 2015-10-29 15:34:38 +02:00
Andrew Svetlov a0f73c85eb More docs 2015-10-29 10:31:24 +02:00
Andrew Svetlov 4ed19b2bb0 Update doc 2015-09-06 07:12:18 +02:00
Andrew Svetlov 29869c710f Add test for remember/forbid when library was not setted up 2015-08-05 13:32:49 +03:00
Andrew Svetlov ff8ecf06da Return authenticated anonymous if library was not setted up 2015-08-04 21:19:01 +03:00
Andrew Svetlov 29695bd24f Return back to passing response parameter into remember and forget methods 2015-07-29 23:41:16 +03:00
Andrew Svetlov 7c702e5df9 Initial commit 2015-07-08 20:30:24 +03:00