Skip to main content

aa-desktop-bridge

Alliance Auth plugin for AA Desktop. It mounts a django-ninja API at /api/desktop/v1/.

Method Path Auth
GET /api/desktop/v1/discovery none
GET /api/desktop/v1/me Bearer access token, scope desktop.core
GET /api/desktop/v1/modules Bearer access token, scope desktop.core
any /api/desktop/v1/modules/<id>/... Bearer access token, a scope of that module, and the module's Alliance Auth permissions

Session cookies are not a credential. See the repository README for installing it on Alliance Auth 5.5 and for the OIDC client the desktop app expects.

Module routes

Another Alliance Auth app can give the desktop client its own routes. It registers a desktop_module_hook that returns a DesktopModule (id, name, version, scopes, required permissions, and a django-ninja Router). The bridge mounts the router at /api/desktop/v1/modules/<id>/. The full example and rules are in aa_desktop_bridge/modules.py. In short:

  • Scopes are named desktop.<id> or desktop.<id>.<name>.
  • At least one Alliance Auth permission is required.
  • Every route uses DesktopBearer([...], permissions=...) with the module's own scopes and all of its required permissions, and nothing else.

A module that breaks a rule, or whose hook raises, is not mounted at all, and the reason is logged. The rest of the API keeps working.

The admin registers each module scope in OAUTH2_PROVIDER["SCOPES"], the same way as desktop.core. Until then the scope cannot be granted, and the module's routes answer 403.

discovery lists mounted modules and their scopes. /modules lists the ones the signed-in user has the permissions for, and which of their scopes the token already holds. /me gives their ids in modules_available.

Check what is mounted:

python manage.py desktop_modules

It prints each mounted module and its scopes, each skipped module with the reason, and any module scope that is missing from OAUTH2_PROVIDER["SCOPES"]. It exits 1 if anything is wrong, so an image build can stop on it.

Publishing

The package is published to PyPI from a bridge-v<version> tag. The workflow and the one-time Trusted Publisher settings are in docs/pypi.md.

Metadata

Release files for aa-desktop-bridge 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aa-desktop-bridge 0.2.0
File Size Uploaded Provenance Actions
aa_desktop_bridge-0.2.0.tar.gz 20.9 kB With provenance Details for aa_desktop_bridge-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aa-desktop-bridge 0.2.0
File Interpreter ABI Platform Actions
aa_desktop_bridge-0.2.0-py3-none-any.whl Python 3 none any Details for aa_desktop_bridge-0.2.0-py3-none-any.whl

Total release size: 38.8 kB

Release files / aa_desktop_bridge-0.2.0.tar.gz

Download URL aa_desktop_bridge-0.2.0.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b614afc3f675a81bf4156be18a33c7e031b6f602606411827a846e11d8361604
BLAKE2b-256 checksum
How to use checksums
05ace2b5f3dfd9f4306311a575adf65acb0413bf0bf0ce7342f72e347a87de6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / aa_desktop_bridge-0.2.0-py3-none-any.whl

Download URL aa_desktop_bridge-0.2.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d640450c7ffe9af6534ba26d57f591716f5475a59bf4a931073895ab300c888d
BLAKE2b-256 checksum
How to use checksums
e1e6b9e43d52d272aacd9322ac7ec6f3ebf55506feb4f53a1f0e12f565333bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for aa-desktop-bridge 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aa_desktop_bridge-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page