aiohttp_security
The library provides identity and authorization for aiohttp.web.
Installation
Simplest case (authorization via cookies)
$ pip install aiohttp_security
With aiohttp-session support
$ pip install aiohttp_security[session]
Examples
Take a look at examples:
and demos at demo directory.
Documentation
Develop
pip install -r requirements-dev.txt
License
aiohttp_security is offered under the Apache 2 license.
CHANGES
0.5.0 (2023-11-18)
Added type annotations.
Added a reason message when permission is rejected.
Switched to aiohttp.web.AppKey.
Reverted change in JWTIdentityPolicy so identity returns str.
0.4.0 (2018-09-27)
Bump minimal supported aiohttp version to 3.2.
Use request.config_dict for accessing jinja2 environment. It allows to reuse jinja rendering engine from parent application.
0.3.0 (2018-09-06)
Deprecate login_required and has_permission decorators. Use check_authorized and check_permission helper functions instead.
Bump supported aiohttp version to 3.0+.
Enable strong warnings mode for test suite, clean-up all deprecation warnings.
Polish documentation
0.2.0 (2017-11-17)
Add is_anonymous, login_required, has_permission helpers. (#114)
0.1.2 (2017-10-17)
Make aiohttp-session optional dependency. (#107)
Metadata
Release files for aiohttp-security 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aiohttp-security-0.5.0.tar.gz | 55.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiohttp_security-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 80.7 kB
Release files / aiohttp-security-0.5.0.tar.gz
| Download URL | aiohttp-security-0.5.0.tar.gz |
|---|---|
| Size | 55.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50cb724d310e1d0289798bb98ae852c3b75b77e8f51ce5159c57b7261d0638bd
|
|
BLAKE2b-256 checksum How to use checksums |
314956c131fe3dead875ab5907b154dac7fb6ee727662de80b7da0ff045030d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / aiohttp_security-0.5.0-py3-none-any.whl
| Download URL | aiohttp_security-0.5.0-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
791ecbb4bbdb95b3a2033bda345231628ea42903b2d33b6a3bf8737ed68c6072
|
|
BLAKE2b-256 checksum How to use checksums |
f7c49abee42a0c438f531a66906fb678eb1946c55c08e623b42c05f6f2fc616e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for aiohttp-security 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.