Skip to content

A collection of utilities for implementing Kong OAuth with Django Rest Framework

License

Notifications You must be signed in to change notification settings

SchoolOrchestration/kongoauth

Repository files navigation

kongoauth

A collection of utilities for implementing Kong OAuth with Django Rest Framework

Status

CircleCI PyPI version

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 manage.py test

Upload to pypi check if you have the correct permissions first then install:

  • twine
# change the version in setup.py then run
python setup.py sdist

twine upload dist/twine upload dist/django-kongoauth-<version>.tar.gz 

About

A collection of utilities for implementing Kong OAuth with Django Rest Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •