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>ordesktop.<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.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aa_desktop_bridge-0.3.1.tar.gz | 24.5 kB | With provenance | Details for aa_desktop_bridge-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aa_desktop_bridge-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for aa_desktop_bridge-0.3.1-py3-none-any.whl |
Total release size: 45.0 kB
Release files / aa_desktop_bridge-0.3.1.tar.gz
| Download URL | aa_desktop_bridge-0.3.1.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
474fd8c328c3a08d44a7b80f255cb5457c17ddb2c011fe82035b74f2a444d9f8
|
|
BLAKE2b-256 checksum How to use checksums |
a3216da59a3b244fa051a36c0084613981846bb906e81035bc77660b7d710dd3
|
| 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 logRelease files / aa_desktop_bridge-0.3.1-py3-none-any.whl
| Download URL | aa_desktop_bridge-0.3.1-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0524e3387ca677d16b1466983554341608150faf56ea580057dd876c5ac828cf
|
|
BLAKE2b-256 checksum How to use checksums |
8e26381311204e269b88043cf733b53625e762bd6d9ebf168a1eb65c8d9ee9d6
|
| 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 logSecurity for aa-desktop-bridge 0.3.1
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.
Attestation for aa_desktop_bridge-0.3.1.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 logA 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.