Skip to main content

A Django app for HelseID authentication.

Project description

django-helseid

Django application for authenticating users with HelseID

Installation

  1. Install the package:

    pip install django-helseid
    

    Or locally for development:

    uv pip install -e .
    
  2. Add helseid to your INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        ...
        'helseid',
    ]
    
  3. Add the authentication backend:

    AUTHENTICATION_BACKENDS = [
        'django.contrib.auth.backends.ModelBackend',
        'helseid.backends.HelseIDBackend',
    ]
    
  4. Configure HELSEID settings:

    HELSEID = {
        'CLIENT_ID': 'your-client-id',
        'CLIENT_SECRET': { ... }, # JWK dict
        'SCOPE': ['openid', 'profile', ...],
        'SERVER_METADATA_URL': "https://helseid-sts.test.nhn.no/.well-known/openid-configuration",
    }
    

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_helseid-1.0.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

django_helseid-1.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file django_helseid-1.0.0.tar.gz.

File metadata

  • Download URL: django_helseid-1.0.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.1

File hashes

Hashes for django_helseid-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4d1f8007af45ad5b85b7ba491db6382877aeb192c09368550217c0dedeafff4c
MD5 d2a007649974caa9e59abaa2f1bf1756
BLAKE2b-256 ddfbb3a7eadee61ffc5c1b78f22179848c9f080f425583c9c8a1069b2cfcdf23

See more details on using hashes here.

File details

Details for the file django_helseid-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_helseid-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.1

File hashes

Hashes for django_helseid-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20392cd5851eaa9073b808a8acd7acd74abe6850066ec6734d36f69937dd27e0
MD5 7da0bee17aa7a6838abc19fc5983324d
BLAKE2b-256 204ab4b187ac50505ac09646ad1a158c8628649236bc030333b044286868536d

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