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.

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
aiohttp_security-0.3.0-py3-none-any.whl (6.8 kB) Copy SHA256 hash SHA256 Wheel py3 Sep 6, 2018
aiohttp-security-0.3.0.tar.gz (53.1 kB) Copy SHA256 hash SHA256 Source None Sep 6, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page