Skip to main content

A Django app extension of django-oauth-toolkit that implements scope based applications.

Project description

Mad Oauth2

Mad Oauth2 app is an extention of django-oauth-toolkit that implements scopes and schemes in detail

Quick start

  1. Add "mad_oaut2" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'oauth2_provider',
        'mad_oauth2',
    ]
    
    OAUTH2_PROVIDER_APPLICATION_MODEL="mad_oauth2.Application"
    OAUTH2_PROVIDER = {
        "SCOPES_BACKEND_CLASS": "mad_oauth2.oauth2.ApplicationScopes"
    }
    
  2. Run python manage.py migrate to create mad_oauth2 models.

Clearing Expired Tokens

Run celery periodic task to clear expired tokens mad_oauth2.tasks.removeExpiredTokens

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mad_oauth2-0.2.0.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file mad_oauth2-0.2.0.tar.gz.

File metadata

  • Download URL: mad_oauth2-0.2.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for mad_oauth2-0.2.0.tar.gz
Algorithm Hash digest
SHA256 29b8e8e453e398ce1d453cc879f5535fb44ed2e1c6059dfa6f6fc0c6438c0ccd
MD5 9f809a8af31f2bc62b9a7e130c50f3d6
BLAKE2b-256 9cb5e524428734b70ff81dbad6c1288b86ad7685e4974e77e5e56767cd7bd813

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page