Metadata-Version: 2.0
Name: pyramid-authsanity
Version: 1.1.0
Summary: An auth policy for the Pyramid Web Framework with sane defaults.
Home-page: https://github.com/usingnamespace/pyramid_authsanity
Author: Bert JW Regeer
Author-email: bertjw@regeer.org
License: UNKNOWN
Keywords: pyramid authorization policy
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Pyramid
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: pyramid
Requires-Dist: zope.interface
Requires-Dist: pyramid-services (>=0.3)
Provides-Extra: docs
Requires-Dist: pyramid; extra == 'docs'
Requires-Dist: zope.interface; extra == 'docs'
Requires-Dist: pyramid-services (>=0.3); extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: repoze.sphinx.autointerface; extra == 'docs'
Provides-Extra: testing
Requires-Dist: pyramid; extra == 'testing'
Requires-Dist: zope.interface; extra == 'testing'
Requires-Dist: pyramid-services (>=0.3); extra == 'testing'
Requires-Dist: pytest; extra == 'testing'
Requires-Dist: coverage; extra == 'testing'
Requires-Dist: pytest-cov; extra == 'testing'

==================
pyramid_authsanity
==================

An auth policy for the `Pyramid Web Framework
<https://trypyramid.com>`_ with sane defaults that works with `Michael
Merickel's <http://michael.merickel.org>`_ absolutely fantastic
`pyramid_services <https://github.com/mmerickel/pyramid_services>`_.
Provides an easy to use authorization policy that incorporates web security
best practices.

Installation
============

Install from `PyPI <https://pypi.python.org/pypi/pyramid_authsanity>`_ 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


