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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c55bf9d34b2103c4400ac41df15646bec2b574f41af4adfaa343ec102e6173 |
|
MD5 | de58fcab73323b2c57ee9f86a704dc4e |
|
BLAKE2b-256 | 6f0078568f4ec63e449a463c14e4ea67f04d84d024516834aabb57cc70e55fd1 |
Close
Hashes for decode_server_django-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ec6b68c613e26fd66cd2994b9ed2b430b6f718c3666f0b90f719503cbb45a7 |
|
MD5 | 1121e5b802244563260c628923364eca |
|
BLAKE2b-256 | a3c21769175c8137fdaa2aba317489baca5894f8bf253a08b24246d3e34eef5e |