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
- The remote server must support OpenWebAuth
- Login on the remote server as me@remoteserver.net
- Login on your django app: https://mydjango.app/?zid=me@remoteserver.net
- You should be logged in as me@remoteserver.net and your remote avatar should be shown
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c6315036966ed2d32555977eca869015c3012d100d26cd03a335bebd18b99d8
|
|
| MD5 |
99f645a6dfc7893061a0b66c4f9b2b17
|
|
| BLAKE2b-256 |
80691cc37ccd80bf2be98ffa3ccead4a194104cbb66ef4984fdb5b4fd2244fe8
|
File details
Details for the file django_auth_openwebauth-0.0.2-py3-none-any.whl.
File metadata
- Download URL: django_auth_openwebauth-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d9ae5f9756c2759b683be2b1661293e1e0d368e50ccf8e3413e631cb823d87e
|
|
| MD5 |
5c80d9a9a1b1260f3813e18e6108aae6
|
|
| BLAKE2b-256 |
6f83bb15e43e9b83c1deed3f7032e632f3162338b21f6db7161782e188222260
|