Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Authenticated users using Auth0.

Project Description
Django Auth0 Auth

*Django Auth0 Auth* allows you to authenticate through Auth0.


Run `pip install django-auth0-auth`

Add the `Auth0Backend` to your `AUTHENTICATION_BACKENDS` setting:


Edit your `` to include:

urlpatterns = [
url(r'^auth0/', include('auth0_auth.urls')),



Auth0 domain.


Auth0 client id.


Auth0 client secret.


**default:** `'openid email'`
OAuth scope parameter.


**default:** `True`
Allow creation of new users after successful authentication.

Lock Signin
To log in using the JavaScript based **Lock** dialog, add the following to your project.

Add the `auth0` context processor to the `TEMPLATES` options.

'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'context_processors': [

Add the following JavaScript snippet to your `base.html` below your sites other JavaScript.

<script src=""></script>
<script type="text/javascript">
var lock = new Auth0Lock('{{ AUTH0_CLIENT_ID }}', '{{ AUTH0_DOMAIN }}');
function signin() {{
callbackURL: '{{ AUTH0_CALLBACK_URL }}',
responseType: 'token',
authParams: {
'scope': '{{ AUTH0_SCOPE }}',
'response_mode': 'form_post',
'state': '{{ AUTH0_STATE }}'

Add a login button to your `base.html`.

<button onclick="window.signin();">Login</button>
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-auth0-auth-1.6.2.tar.gz (5.9 kB) Copy SHA256 Checksum SHA256 Source Jul 21, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting