Django middleware for Decode Auth
Project description
Decode Server Django
A middleware for Django for authenticating requests from Decode Auth Server.
Installing
Install using pip:
pip install decode_server_django
A simple example
To integrate your Django app with Decode Auth you need to set the Decode public key and register the middleware with the app.
# in settings.py of your app add the public key
DECODE_PUBLIC_KEY = """-----BEGIN RSA PUBLIC KEY-----
...REDACTED...
-----END RSA PUBLIC KEY-----"""
# And register the middleware
MIDDLEWARE = [
'decodeauth.middleware.DecodeAuthMiddleware',
...
]
Developing
To install Decode Server Django, alogn with the tools you need to develop and run tests, run the following in your virtualenv:
pip install -e .[dev]
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
Built Distribution
Close
Hashes for decode_server_django-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b5bed650e5b6dbe86e11366bfc8a8f42fa3a4d3992651d1e5d9fc652731d61 |
|
MD5 | 5954d45dbed87a1334c598138abc85e6 |
|
BLAKE2b-256 | 57cde7d3850547d37c6644d60a4a47e253aca4745ea2eab06e9246d0ce0aecc7 |
Close
Hashes for decode_server_django-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39eab930d5981e3f752454bbfd3de79a5fa84a0bb6d3da8d4b15136dfa74ef29 |
|
MD5 | 4d64265979227f90b068a670327dbfda |
|
BLAKE2b-256 | fac2b027f6f07da22b9ff62ef94dd6cba4eaa0cc7726968dd9386a02fb9ffb8f |