Skip to main content

An auth policy for the Pyramid Web Framework with sane defaults.

Project description

An auth policy for the Pyramid Web Framework with sane defaults that works with Michael Merickel’s absolutely fantastic pyramid_services. Provides an easy to use authorization policy that incorporates web security best practices.

Installation

Install from PyPI using pip or easy_install inside a virtual environment.

$ $VENV/bin/pip install pyramid_authsanity

Or install directly from source.

$ git clone https://github.com/usingnamespace/pyramid_authsanity.git
$ cd pyramid_authsanity
$ $VENV/bin/pip install -e .

Setup

Activate pyramid_authsanity by including it into your pyramid application.

config.include('pyramid_authsanity')

1.1.0 (2017-11-29)

  • Add new Authorization header based authentication source

    This provides out of the box support for “Bearer” like tokens.

1.0.0 (2017-05-19)

  • Remove Python 2.6 support

  • Fix a bug whereby the policy was storing a dict instead of a list in the source, which of course broke things subtly when actually using the policy.

  • Send empty cookie when forgetting the authentication for the cookie source

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

pyramid_authsanity-1.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

pyramid_authsanity-1.1.0-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyramid_authsanity-1.1.0.tar.gz.

File metadata

File hashes

Hashes for pyramid_authsanity-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f3963246e0fa257bf135a2f3a48ab9ab95fdbc8971a14f30c2cf4fb63b594d0d
MD5 524c0f1fa58a43c12822f8e023e5b27a
BLAKE2b-256 b872b2567d5bb62004fbbb99d33ed2024e082aff7fdfd52c45c174d5c667b494

See more details on using hashes here.

File details

Details for the file pyramid_authsanity-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_authsanity-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0bd86a440458fc3a76cdaff948687c3291c9257ab57387e39a0619a65c9a6e0a
MD5 dd838ec249b7b201d016e12c27bab65b
BLAKE2b-256 5cca7777bb53d54fe12a52138199300e1376bcc013c9653e50955756bb4bc249

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