Skip to main content

===============

Project description

WSGI Basic Auth

===============



Really simple wsgi middleware to provide basic http auth. It is intented to

work with environment variables. This makes it simple to use in a docker

context.



Status

------



.. image:: https://readthedocs.org/projects/wsgi-basic-auth/badge/?version=latest

:target: https://readthedocs.org/projects/wsgi-basic-auth/



.. image:: https://travis-ci.org/mvantellingen/wsgi-basic-auth.svg?branch=master

:target: https://travis-ci.org/mvantellingen/wsgi-basic-auth



.. image:: https://ci.appveyor.com/api/projects/status/im609ng9h29vt89r?svg=true

:target: https://ci.appveyor.com/project/mvantellingen/wsgi-basic-auth



.. image:: http://codecov.io/github/mvantellingen/wsgi-basic-auth/coverage.svg?branch=master

:target: http://codecov.io/github/mvantellingen/wsgi-basic-auth?branch=master



.. image:: https://img.shields.io/pypi/v/wsgi-basic-auth.svg

:target: https://pypi-hypernode.com/pypi/wsgi-basic-auth/







Getting started

===============



Using this module is really simple. In Django for example edit the wsgi.py

file and add the following to the end of the file.



.. code-block:: python



from wsgi_basic_auth import BasicAuth

application = BasicAuth(application)



Now run docker with the env variable WSGI_AUTH_CREDENTIALS=foo:bar and you have

to authenticate with username foo and password bar. Multiple credentials are

separated with a | (pipe) character.



To exclude specific paths for healthchecks (e.g. the Amazon ELB healthchecks)

specify the environment variable WSGI_AUTH_EXCLUDE_PATHS=/api/healthchecks.

Here multiple paths can be separated with the ; char.





Installation

============



You can install the latest version using pip::



pip install wsgi-basic-auth





Home-page: https://github.com/mvantellingen/wsgi-basic-auth
Author: Michael van Tellingen
Author-email: michaelvantellingen@gmail.com
License: MIT
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy

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

wsgi-basic-auth-1.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

wsgi_basic_auth-1.0.2-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wsgi-basic-auth-1.0.2.tar.gz.

File metadata

File hashes

Hashes for wsgi-basic-auth-1.0.2.tar.gz
Algorithm Hash digest
SHA256 df0db3a8a674ed39a556ac5e6d8ca2223bc84779afee6388773edf39c3ee3c63
MD5 9ef96ffedcda573feb476ae88c9e183d
BLAKE2b-256 cdf51f01f9b1fdb9162215cd7af299564eeb4989a56aecf163f7015307c156b8

See more details on using hashes here.

Provenance

File details

Details for the file wsgi_basic_auth-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for wsgi_basic_auth-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e0ce8e7e49da60ef5fe4bbb1b44bac0fc39b6eeaf3037b5c93a3772eb24d58ce
MD5 f36c357a154ee8d7d6df1915e8af8d39
BLAKE2b-256 4f76f82c8096664ac9f7be95077218a3c5fd43223745564d4ed265cce22447bd

See more details on using hashes here.

Provenance

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