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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6769826f0d4e9e2169f65511f004208fe39eafc844d157daeab25189543467 |
|
MD5 | 06ae0fe243685df3008c322a8261410c |
|
BLAKE2b-256 | a03e2c679dbfea129865a57a42945789d0182f5d390f63b4e0f9e8d741c085a5 |
Close
Hashes for decode_server_django-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40171e959d12dfebcccbc2b9b996376c79ec1759f1afd1011a03fc38a18a110b |
|
MD5 | 17a58fdf9c6ab1da1327f7da0c3b6e2f |
|
BLAKE2b-256 | 521ddfd9bddfc71de7b502f39afcc672ef05e03e03b15c38e44afd76418faf24 |