Skip to main content

OIDCHub: Identity provider for the mortals 🪪

Project description

OpenID Connect Hub

The oidc_hub package acts as an identity provider, integrating OpenID Connect to streamline Identity and Access Management (IAM).

This package provides user authentication, password resets, and invitations while providing secure identity verification and profile management.

Using OpenID Connect’s standardized protocols, oidc_hub manages user identities and access, enhancing both security and operational efficiency for Djangonauts.

Installation

pip install oidc-hub

Configuration

Required

Add oidc_hub and oidc_provider to your INSTALLED_APPS in the Django project's settings:

INSTALLED_APPS = [
  "oidc_hub.accounts",
  "oidc_hub.admin",
  "django.contrib.admin",
  # ...
  "django.contrib.staticfiles",
  "oidc_provider",
]

Then, we can use the package root urlconf:

ROOT_URLCONF = "oidc_hub.urls"

Optional

To support multiple languages in our application, we should configure internationalization (i18n) settings:

LANGUAGE_CODE = "fr"
LANGUAGES = (
  ('fr', _('French')),
  ('en', _('English'))
)
TIME_ZONE = "UTC"

USE_I18N = True
USE_TZ = True

Migrations

Run migrations to create the required database tables:

./manage.py migrate

The first time you migrate, an administrator account will be created according to the settings you have specified in a settings module.

The initial migration will use ADMIN_USERNAME, ADMIN_EMAIL and ADMIN_PASSWORD settings or their default values if these settings are not specified.

Webserver

Development

Start the Django development server.

./manage.py runserver

License

This project is licensed under the AGPLv3 License - see the LICENSE.md file for details.

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

oidc_hub-0.7.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

oidc_hub-0.7-py2.py3-none-any.whl (39.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file oidc_hub-0.7.tar.gz.

File metadata

  • Download URL: oidc_hub-0.7.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for oidc_hub-0.7.tar.gz
Algorithm Hash digest
SHA256 1c5883f36fd4b87ac034f26ef70bc59603c3609b0eec53f5b052ad17809fde54
MD5 67207c13a4360bafab1547181f97eb17
BLAKE2b-256 fd10e2104ceaf6254fb7a6d375cac696db1162e2abb51a5339d1cb7fb0745cc6

See more details on using hashes here.

File details

Details for the file oidc_hub-0.7-py2.py3-none-any.whl.

File metadata

  • Download URL: oidc_hub-0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 39.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for oidc_hub-0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a197ef7089a9d984d65404f6643c9d9dec94dddd86c386e4ca483f4e495939c9
MD5 d7f23497e3eb5188f33845a03ce00f65
BLAKE2b-256 ca23d4d817e4e2bdd5fbccef14c92b735614651dc89a47eefac650f978c64e80

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