===============
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.python.org/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
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.python.org/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
Metadata
Release files for wsgi-basic-auth 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wsgi-basic-auth-1.0.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wsgi_basic_auth-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.6 kB
Release files / wsgi-basic-auth-1.0.0.tar.gz
| Download URL | wsgi-basic-auth-1.0.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c498aec75ee63fd2b42d1c86f6ad504bb89089b095695966fce644abe7f21bc1
|
|
BLAKE2b-256 checksum How to use checksums |
a6b023703bf866eca1353b2a852cc43e67b94859ecf3d0ec890a03c543f261bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsgi_basic_auth-1.0.0-py2.py3-none-any.whl
| Download URL | wsgi_basic_auth-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b368cf715aae209081df8edd1c802a2adf5c9992eba18394c83c41c3522e535d
|
|
BLAKE2b-256 checksum How to use checksums |
38720256f431e8feabe7d0885254047a8ed821bf29d4a3668e18e771efdbe2dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |