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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cac6766cb13738875b9c9fe26f7304c5d1d0b1a8de24e1afe5c00fa0a26cc6c |
|
MD5 | e6491a249bad620659347346f44e2027 |
|
BLAKE2b-256 | bdd192c0debc2ba1cbb1e5da58a2f6717197ad16cf75b1a783ffe08471ae808f |
Close
Hashes for decode_server_django-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b347cb2aba4d976f7d41831d6a7c29b45ec3c81f22c49e173ca8896ff2eed6 |
|
MD5 | ea4fea430da8cad40664b79bd7386ddb |
|
BLAKE2b-256 | e1f682a6fb799c3bbd5b4f34f0a18d5ff5c1440901e146c6105d6f65be47682f |