No project description provided
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
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
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file wsgi-basic-auth-1.0.3.tar.gz
.
File metadata
- Download URL: wsgi-basic-auth-1.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aabceb60351c88a881c36cbe91d0148e6feaf88885628779d8c04cc8aa123bbd |
|
MD5 | 52a7a45a34935fc4ba9429bb9d4045bb |
|
BLAKE2b-256 | 1d6ac1273b2981e9938c99568ba41efcac696400a2f55875e0c79087bf7c654c |
Provenance
File details
Details for the file wsgi_basic_auth-1.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: wsgi_basic_auth-1.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c5beef8a51dfec2afad3aa4b19c0570b8b55b5d7c2fcdffdf25a7205202702 |
|
MD5 | 268b2d93e5e41a3964710489839b281f |
|
BLAKE2b-256 | 9187dbd7a5c6c9cb37dfe35911f1b1e336616b233283a4405699e83d568d4342 |