django-auth0
Django Auth0 authentication backend Backend implemented against Auth0 Regular Python application
Quickstart
Install django-auth0 $ pip install django-auth0
Add django_auth0 to INSTALLED_APPS
Add django_auth0.auth_backend.Auth0Backend to AUTHENTICATION_BACKENDS
Add django_auth0.context_processors.auth0 to CONTEXT_PROCESSORS so necessary template context will be provided
Include callback urls
Update AUTH0_CALLBACK_URL in settings.py to the following if want to use default authentication handler
Add Auth0 client side JavaScript and initialize it
Options:
AUTH0_CLIENT_ID - Auth0 client app id,
AUTH0_SECRET - Auth0 app secret,
AUTH0_DOMAIN - Auth0 subdomain YOU_APP.auth0.com.
AUTH0_CALLBACK_URL - Auth0 callback url is full url to your callback view like https://YOUR_DOMAIN/CALLBACK
AUTH0_SUCCESS_URL - Url to redirect once you login successfully
Overriding callback view Default callback view looks like this so you can always write your own and set AUTH0_CALLBACK_URL to your custom view it should be url name.
Sample application is at https://github.com/imanhodjaev/auth0-sample
TODO
Improve tests,
Add Auth0 user profile model,
Add support for settings from Auth0,
Move string literals to configuration file
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r requirements-test.txt (myenv) $ python runtests.py
Credits
Tools used in rendering this package:
History
0.0.2 (2016-02-01)
Update documentation
0.0.1 (2016-02-01)
First release on PyPI.
Metadata
Release files for django-auth0 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-auth0-0.0.3.tar.gz | 8.1 kB | Without provenance | Details for django-auth0-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_auth0-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_auth0-0.0.3-py2.py3-none-any.whl |
Total release size: 17.6 kB
Release files / django-auth0-0.0.3.tar.gz
| Download URL | django-auth0-0.0.3.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83f1415a7dabaa9a9b52154b2ca5a4c0e11cbb04772dd346ea5ed36a95088bbd
|
|
BLAKE2b-256 checksum How to use checksums |
1f6fb17ce53618cc28404d06c759576e6ee0da481ba988bfeb94e2baf3016a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_auth0-0.0.3-py2.py3-none-any.whl
| Download URL | django_auth0-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
029e1ea2d3a1696ec34aecb8d730af0a7960f734a6382768119452e1f783c50b
|
|
BLAKE2b-256 checksum How to use checksums |
b872b9ec1605ba003da46e2b2b96e658ee45b05a8fb22ea3abb0152fdf3bc2de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-auth0 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.