Skip to main content

django-auth-anywhere is a Django application which enables non-DRF views to authenticate using DRF backends.

Project description

django-auth-anywhere
=======================

django-auth-anywhere is a Django application which enables using `Django Rest Framework`_ authentication backends throughout your Django application. This can be useful to secure non-API endpoints behind token authentication using `JSON web tokens`_.

.. _Django Rest Framework: http://www.django-rest-framework.org/

.. _JSON web tokens: http://getblimp.github.io/django-rest-framework-jwt/

Requirements
------------

This has only been tested with:

* Python: 3.5
* Django: 1.8, 1.9, 1.10

Setup
-----

Install from **pip**:

.. code-block:: sh

pip install django-auth-anywhere

and then add it to your installed apps:

.. code-block:: python

INSTALLED_APPS = (
...
'auth_anywhere',
...
)

You will also need to add a middleware class to listen in on responses:

.. code-block:: python

MIDDLEWARE_CLASSES = [
...
'auth_anywhere.middleware.AuthenticationMiddleware',
'django.middleware.common.CommonMiddleware',
...
]

Credits
-------

``django-auth-anywhere`` was created by Morgante Pell (`@morgante
<https://github.com/morgante>`_), with inspiration from Anthony Lobko (`@amelius15
<https://github.com/amelius15>`_).


History
=======

Pending
-------

* New release notes go here.

0.0.2 (2016-09-30)
-----------------

* Remove references to internal project code.


0.0.1 (2016-09-30)
-----------------

* Initial release


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

django-auth-anywhere-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

django_auth_anywhere-0.0.2-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-auth-anywhere-0.0.2.tar.gz.

File metadata

File hashes

Hashes for django-auth-anywhere-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3a616f6d97176225cd793cc8f929a5b0b831ebf4fc97b43431d1f091a89ed049
MD5 eec8fd0225add2b3258f728e7d12bc04
BLAKE2b-256 3cf3af2a3c05c86148c5bc1e636281377a4d47794c90e73663e11f70e38ae607

See more details on using hashes here.

File details

Details for the file django_auth_anywhere-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_auth_anywhere-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 16a15de2b376d4942ffceb3bfaa1167d3826a447fc9a473395e0d53c336f3573
MD5 5bc258ca15673e76b00734f1170f4673
BLAKE2b-256 b95815536e88bf1be790e03398a691a8cc2ba513ad0068d6681d1b5451b1ae06

See more details on using hashes here.

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