Skip to main content

OpenWebAuth authentication

Project description

Django authentication using OpenWebAuth

This is a django authentication backend based on OpenWebAuth (https://codeberg.org/fediverse/fep/src/branch/main/fep/61cf/fep-61cf.md). It enables decentralised single sign-on by authenticating a remote user against a remote server.

Repository: https://codeberg.org/abanink/django_auth_openwebauth

OpenWebAuth requires that you can add the /owa endpoint on the webservice root

Installation

$ pip install django-auth-openwebauth

Configuration

In settings.py

  • add this app to INSTALLED_APPS
    INSTALLED_APPS = [
        ...
        "django_auth_openwebauth",
        ...
    ]
    
  • add Middlewares
    MIDDLEWARE = [
        ...
        "django_auth_openwebauth.middleware.AttemptOpenWebAuthentication",
        "django_auth_openwebauth.middleware.ValidateOpenWebAuthentication",
        ...
        "django.contrib.auth.middleware.PersistentRemoteUserMiddleware",
        ...
    ]   
    
  • add OpenWebAuth Authentication Backend
    AUTHENTICATION_BACKENDS: tuple[str, ...] = (
        ...
        "django_auth_openwebauth.backend.OpenWebAuthBackend",
        ...
    )
    
    

In urls.py

  • add this package's urls
    if "django_auth_openwebauth" in settings.INSTALLED_APPS:
        urlpatterns.append(
            path("", include("django_auth_openwebauth.urls")),
        )
    

Usage

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_auth_openwebauth-0.0.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

django_auth_openwebauth-0.0.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file django_auth_openwebauth-0.0.2.tar.gz.

File metadata

  • Download URL: django_auth_openwebauth-0.0.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for django_auth_openwebauth-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9c6315036966ed2d32555977eca869015c3012d100d26cd03a335bebd18b99d8
MD5 99f645a6dfc7893061a0b66c4f9b2b17
BLAKE2b-256 80691cc37ccd80bf2be98ffa3ccead4a194104cbb66ef4984fdb5b4fd2244fe8

See more details on using hashes here.

File details

Details for the file django_auth_openwebauth-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_auth_openwebauth-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d9ae5f9756c2759b683be2b1661293e1e0d368e50ccf8e3413e631cb823d87e
MD5 5c80d9a9a1b1260f3813e18e6108aae6
BLAKE2b-256 6f83bb15e43e9b83c1deed3f7032e632f3162338b21f6db7161782e188222260

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