Skip to main content

A Django app for HelseID authentication.

Project description

django-helseid

Django application for authenticating users with HelseID

Installation

⚠️ WARNING: This project is currently under development and is NOT production-ready. It is intended for demonstration and testing purposes only. Do not use in a production environment without thorough security review and further development. ⚠️

  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.1.tar.gz (33.4 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.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_helseid-1.0.1.tar.gz
  • Upload date:
  • Size: 33.4 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.1.tar.gz
Algorithm Hash digest
SHA256 4dbb1662e76258e515bdbe56746165487941cd885a01c11050f10243ab88b3bb
MD5 cc61d75dc02f5177466c64c4fc353369
BLAKE2b-256 5538783067d5a8c80d5374aea4a2697d5f0dbdac64f78a606993c20a4e796c6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_helseid-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 555eb069cce828f52e20dee7130b784dcd896abd5c2cc192da80ffae4b7b9e6f
MD5 4bcfb5f77dbbe38369c3770942b31b3b
BLAKE2b-256 ebf9cc94e00a870c9418ef47d123800ea214c7e4181e1b40ff08c547cca9cdf5

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