A Kong OAuth Utility Library
Project description
# kongoauth
A collection of utilities for implementing Kong OAuth with Django Rest Framework
## Setting it up in your project:
**Install:**
```
pip install ...
```
**Add to settings**
```
INSTALLED_APPS = [
..
'kongoauth',
]
```
**Add DRF authentication class**
```
REST_FRAMEWORK = {
...
'DEFAULT_AUTHENTICATION_CLASSES': (
...
'kongoauth.authentication.KongOAuthAuthentication',
),
...
}
```
**Optional settings**
* `AUTH_REDIS_KEY`
* `REDIS_CONN` # a dictionary with redis configs
## Run the tests
```
docker-compose run --rm web python example/manage.py test
```
A collection of utilities for implementing Kong OAuth with Django Rest Framework
## Setting it up in your project:
**Install:**
```
pip install ...
```
**Add to settings**
```
INSTALLED_APPS = [
..
'kongoauth',
]
```
**Add DRF authentication class**
```
REST_FRAMEWORK = {
...
'DEFAULT_AUTHENTICATION_CLASSES': (
...
'kongoauth.authentication.KongOAuthAuthentication',
),
...
}
```
**Optional settings**
* `AUTH_REDIS_KEY`
* `REDIS_CONN` # a dictionary with redis configs
## Run the tests
```
docker-compose run --rm web python example/manage.py test
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-kongoauth-0.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for django_kongoauth-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddbfaeffa584ea25e35cf88d9a1c66fdb95a4a96bda8a479b0eb4c2f67e82799 |
|
MD5 | 6dd6f5c35d5a8bffb01f73e244feaa01 |
|
BLAKE2b-256 | abd192f8e8da703fd15cfb5982d8536e6677624fc285ea509ee903a6b2a5bce2 |