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.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)

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.4.0.tar.gz (53.3 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.4.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiohttp-security-0.4.0.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for aiohttp-security-0.4.0.tar.gz
Algorithm Hash digest
SHA256 40d4bb150454e392c2dfa3620f6eab28e140e94cf0c2d3b4bf43aef653ec9405
MD5 1624f982d7a779e6ed396ef2ed20acc7
BLAKE2b-256 3601d85be376b7c1773b3cb7849cd56dc7d38165664df7de2d3e20af507ef5bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiohttp_security-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for aiohttp_security-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd0ffbe2195c6f79378f24fb89fa19de62c747ab8f1c4df690fada7f8b45834
MD5 e45bc80396914be550d38179ae371fd6
BLAKE2b-256 bca241c60c5020da25f20ab677445c680ed5dd413e0097966bd0a0846eee71d8

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