# 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
```
Release files for django-kongoauth 0.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-kongoauth-0.1.19.tar.gz | 7.4 kB | Details |
Release files / django-kongoauth-0.1.19.tar.gz
| Download URL | django-kongoauth-0.1.19.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6225a0f14e06e62f742f4b4f0bde2dd12de17c802a88babeedab590a9e89ec4d
|
|
BLAKE2b-256 checksum How to use checksums |
20f741d3df58db181e4d30a23cbc30a0ae85abb801bece919c6bf953f88d39e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|