The library provides identity and authorization for aiohttp.web.
Simplest case (authorization via cookies)
$ pip install aiohttp_security
With aiohttp-session support
$ pip install aiohttp_security[session]
Take a look at examples:
and demos at demo directory.
https://aiohttp-security.readthedocs.io/
pip install -r requirements-dev.txt
aiohttp_security
is offered under the Apache 2 license.
Now decorators
login_required, provide_user, has_permission
add user argument to function