Skip to main content

add support for http basic/digest authentication to pyramid

Project description

This is an authentication policy for __pyramid__ that verifies credentials using either HTTP-Digest-Auth or HTTP-Basic-Auth protocol.

With a reference to https://github.com/mozilla-services/pyramid_digestauth/

with extras:

  1. Add support for HTTP Basic Authentication

  2. Add support for Python 3

  3. Tested with Python 2.7 and Python 3.4

Usage

To use this package, in the app function, just include it.

config.include(“pyramid_httpauth”)

In you development.ini

  • httpauth.schema: default schema to challenge client (digest

    or basic), default=digest

  • httpauth.realm: realm string for auth challenge header

  • httpauth.qop: qop string for auth challenge header

    (used for Digest Auth only)

  • httpauth.nonce_manager: name of NonceManager class to use

    (used for Digest Auth only)

  • httpauth.domain: domain string for auth challenge header

  • httpauth.get_password: name of password-retrieval function

  • httpauth.groupfinder: name of group-finder callback function

1.0

  • Packaging

  • Initial version

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_httpauth-1.0.3.tar.gz (17.3 kB view hashes)

Uploaded Source

Supported by

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