Go to file
Sick Yoon 3d180ea6b1 refactorign get_user_identity to authorized_userid 2016-07-14 19:22:27 +09:00
aiohttp_security refactorign get_user_identity to authorized_userid 2016-07-14 19:22:27 +09:00
demo adding decorator and demo code 2016-05-13 10:40:57 +09:00
docs Update conf.py 2016-01-03 22:06:21 +02:00
tests adding decorator and demo code 2016-05-13 10:40:57 +09:00
.coveragerc Initial commit 2015-07-08 20:30:24 +03:00
.gitignore Initial commit 2015-07-08 20:30:24 +03:00
.travis.yml Try to fix travis 2015-10-29 16:05:30 +02:00
CHANGES.txt Initial commit 2015-07-08 20:30:24 +03:00
LICENSE Update LICENSE 2016-01-03 22:05:24 +02:00
MANIFEST.in Add manifest 2015-07-09 07:15:18 +03:00
Makefile Cleanup docs also 2015-09-02 13:41:41 -04:00
README.rst update REAMDE.rst with usage sample code 2016-05-13 10:59:22 +09:00
requirements-dev.txt Use aiohttp_session 0.4.0+ 2016-01-18 15:06:35 +02:00
setup.py Add session identity 2015-11-19 15:25:10 +02:00

README.rst

aiohttp_security
================

The library provides identity and autorization for `aiohttp.web`__.

.. _aiohttp_web: http://aiohttp.readthedocs.org/en/latest/web.html

__ aiohttp_web_

Usage
-----

.. code-block:: python

  from aiohttp_security import authorize
  
  @authorize(required=True, redirect_url='/login', permission='admin')
  async def index(request, identity=None):
      return web.Response(body=b'OK')

License
-------

``aiohttp_security`` is offered under the Apache 2 license.