🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

django-kongoauth

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-kongoauth

A Kong OAuth Utility Library

0.1.19
PyPI
Maintainers
3

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts