Skip to main content

Lightweight Django OIDC client SDK for Dlux SSO providers.

Project description

django-lux-sso-client

Lightweight Django OIDC client SDK for projects that authenticate against a Dlux SSO provider. This package does not depend on django-lux.

This SDK is optional and Django-specific. Non-Django projects should connect to the Dlux SSO provider with their platform's normal OIDC client library and read the portable dlux_sso_role claim.

from dlux_sso_client.settings import configure_dlux_sso

configure_dlux_sso(
    globals(),
    issuer_url="https://sso.example.com",
    client_id="client-id",
    client_secret="client-secret",
    role_mapping={
        "staff_roles": ["admin", "staff"],
        "groups": {"admin": ["Project Admins"], "staff": ["Project Staff"]},
    },
)

Mount the OIDC client routes:

from django.urls import include, path

urlpatterns = [
    path("accounts/sso/", include("dlux_sso_client.urls")),
]

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_lux_sso_client-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_lux_sso_client-0.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file django_lux_sso_client-0.1.1.tar.gz.

File metadata

  • Download URL: django_lux_sso_client-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_lux_sso_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8fe6d7bb77b2614a4b73d3a5a67b78f6a24a0fc78529f42d14662e151cd156ca
MD5 e26354563b6f803380f93134a6f98183
BLAKE2b-256 5d186bf4441f32862f3de571cc759faa1eda475cc9cae5a01bcd6dd729504a3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lux_sso_client-0.1.1.tar.gz:

Publisher: release-sso-client.yml on debeski/django-lux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_lux_sso_client-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_lux_sso_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa773622c47a25c399fc827c0b67f532e421d596924f6540d6d5607f5a424e50
MD5 40ca31d55d0f470cdcd0d9fb042a1bc4
BLAKE2b-256 c065cf0a0b18b8fc53eaae862f1cf172be755f8ec5fcb3eef4c3dd4e0fa86172

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lux_sso_client-0.1.1-py3-none-any.whl:

Publisher: release-sso-client.yml on debeski/django-lux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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