Skip to main content

security for aiohttp.web

Project description

aiohttp_security

https://travis-ci.org/aio-libs/aiohttp-security.svg?branch=master https://codecov.io/github/aio-libs/aiohttp-security/coverage.svg?branch=master https://readthedocs.org/projects/aiohttp-security/badge/?version=latest https://img.shields.io/pypi/v/aiohttp-security.svg

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:

Basic example

Example with DB auth

and demos at demo directory.

Documentation

https://aiohttp-security.readthedocs.io/

Develop

pip install -r requirements-dev.txt

License

aiohttp_security is offered under the Apache 2 license.

Changes

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiohttp-security-0.3.0.tar.gz (53.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiohttp_security-0.3.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file aiohttp-security-0.3.0.tar.gz.

File metadata

  • Download URL: aiohttp-security-0.3.0.tar.gz
  • Upload date:
  • Size: 53.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for aiohttp-security-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cdbe608d102a6d24651c34811e9c57a149d80cf8a0e7e7c72cf90674060ae32e
MD5 83b419e34c63c94c362d3409857edb9f
BLAKE2b-256 abf778ffc8b070f22ef75c1dcf7a3e7759899ce93c20021ae94b0a191a05d1ff

See more details on using hashes here.

File details

Details for the file aiohttp_security-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: aiohttp_security-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for aiohttp_security-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e30e24f553d1c2ff47324f0f587baccdbb20e4d7bd227736819d5086498e9eb3
MD5 4c28e8d92c9c12e5f33147d760574710
BLAKE2b-256 0b536dc9f8b9530787b7ebef135321d8941fcc080273ec6b0a5becebeac7d55a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page