mozilla-django-oidc-db

A database-backed configuration for mozilla-django-oidc


Keywords
OIDC, django, database, authentication
License
MIT
Install
pip install mozilla-django-oidc-db==0.16.0

Documentation

mozilla-django-oidc-db

Version

0.16.0

Source

https://github.com/maykinmedia/mozilla-django-oidc-db

Keywords

OIDC, django, database, authentication

build-status Coverage status black

python-versions django-versions pypi-version

Database-backed settings for mozilla-django-oidc, with modified unique identifiers

Features

  • Thin layer on top of mozilla-django-oidc
  • Allows configuration of OpenID Connect variables via django-solo
  • Overrides mozilla-django-oidc default behaviour, using the sub claim instead of the email claim as unique identifier for users

mozilla-django-oidc-db provides a database singleton for several configuration variables required for mozilla-django-oidc, moving them from deploy-time to run-time. This enables modification of the configuration, without having to restart the application.

Additionally, mozilla-django-oidc-db by default uses the sub (subject) claim instead of the email claim as the unique identifier for users in the RP (Relying Party) application. Using email as the unique identifier is not recommended, as mentioned in the OpenID Connect specification.

Usage

Please see the hosted documentation for installation, configuration and usage instructions.