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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549a033697614ab01c8ef7a4098d0cf5ace2e73aa5592666dfb438b0bc61ad93 |
|
MD5 | 3e07f67ae7972cd1324d930d1db10f77 |
|
BLAKE2b-256 | 6672cf95e63c85262aab89e83a30b824dc9c7ffdbe98a404aa73257483132d6b |
Close
Hashes for decode_server_django-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21eb7f6ec6d56cfa9968ca2cd8be45976f29f9b3a72e5482d4aa2c36284a8bbd |
|
MD5 | 7401e37d2463b430825845986ee5b2e1 |
|
BLAKE2b-256 | f3aedaa01b05b14074e016ec8c7bfb15692c90d7e49cc7241209ed5b60f3d8ff |