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.6.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

oidc_hub-0.6-py2.py3-none-any.whl (41.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: oidc_hub-0.6.tar.gz
  • Upload date:
  • Size: 28.5 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.6.tar.gz
Algorithm Hash digest
SHA256 b35798abc7ad5a48d09d7eb8846ad7ff731ea80a6a65aefeb52aae3cac473953
MD5 b8b70c298126abc3a875293da07fa036
BLAKE2b-256 3710e30e9732664b59725a55440bf4118a15bee967f7d0a574948e186f6053c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oidc_hub-0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 41.5 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.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aafe7edb0a4901e14c7de9e5a0a4e75cd6b3eb721a7779f6edc144197ebfb2b9
MD5 094cf7fd9904bda27a924516487940fe
BLAKE2b-256 a50a2923cdb18a70dff28d8c92cbb526f6090ffefe74062f349876329d4057f0

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