Skip to main content

Collection of small utilities for Django and Django REST framework projects.

Project description

django-jauth

Simple OAuth2 authentication client library for Django and Django REST framework projects. Django 3.0+ support. Unit test coverage 51%.

Features

  • Supports simple integration both to single page apps (via postMessage) and traditional Django apps (via redirect)

  • Does not require any JavaScript libraries

This is by no means comprehensive OAuth2 package but simple and serves single purpose.

Supported / Tested OAuth2 Providers

  • Facebook

  • Google

Other Features

  • Supports deauthorize and delete Facebook callbacks

Configuration

settings.JAUTH_AUTHENTICATION_SUCCESS_REDIRECT:

  • Set this as URL of user home page after login. Set as None for single-page apps which open separate dialog for login (Value None causes postMessage to be called for the parent window with authentication result)

settings.JAUTH_AUTHENTICATION_ERROR_REDIRECT:

  • Set this as URL of login page with querystring parameter "error" as error message. Can be None for single page apps.

Install

  • pip install django-jauth

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

django_jauth-3.7.3.tar.gz (49.0 kB view details)

Uploaded Source

File details

Details for the file django_jauth-3.7.3.tar.gz.

File metadata

  • Download URL: django_jauth-3.7.3.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for django_jauth-3.7.3.tar.gz
Algorithm Hash digest
SHA256 5dedd8cb22527357c660c063700a4619d1da807b6f5e5d71cd878b775b9ddef7
MD5 6e68b3fb9bfff47dbf61864fd85c9f8d
BLAKE2b-256 7c310790abda5b8d4f96d93f4f80a4aff6e3d5d33b2f208239b4dabd4bcf3e9c

See more details on using hashes here.

Supported by

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