Metadata-Version: 2.0
Name: django-kongoauth
Version: 0.1
Summary: A Kong OAuth Utility Library
Home-page: https://github.com/SchoolOrchestration/kongoauth
Author: schoolOrchestration
Author-email: UNKNOWN
License: MIT License
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content

# 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
```



