Skip to main content

1 Open Forms extension token exchange

Version:

0.5.0

Source:

https://github.com/open-formulieren/open-forms-ext-token-exchange

Keywords:

Open Forms Extension, Keycloak token exchange

Build status Code quality checks Ruff Coverage status

python-versions django-versions pypi-version

Open Forms extension to use Keycloak access tokens when requesting prefill data from external APIs.

1.1 Features

  • Signal receiver which extracts the Keycloak access token from the session and caches it.

  • Pre-request hook that adds a custom authentication class to the request kwargs.

  • Custom authentication class that performs the token exchange with Keycloak and adds the exchanged token to the Authorization header.

1.2 Installation

1.2.1 Requirements

  • Open Forms 3.3.0 or newer.

1.2.2 Install

uv pip install open-forms-ext-token-exchange

1.3 Usage

For an explanation of this how this extension works, look at the Open Forms developer documentation.

To see how to build and distribute an image with this extension, look at the Open Forms documentation about building and distributing extensions.

1.4 Configuration

In the Open Forms Admin, go to Miscellaneous > Token exchange plugin configurations. Click on Add Token exchange plugin configuration and fill in the details:

  • Select the service for which you want the token authorisation to be performed.

  • Add the Keycloak audience.

Save the configuration.

Metadata

Release files for open-forms-ext-token-exchange 0.5.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 open-forms-ext-token-exchange 0.5.0
File Size Uploaded
open_forms_ext_token_exchange-0.5.0.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for open-forms-ext-token-exchange 0.5.0
File Interpreter ABI Platform
open_forms_ext_token_exchange-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / open_forms_ext_token_exchange-0.5.0.tar.gz

Download URL open_forms_ext_token_exchange-0.5.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a94ec0040c2ee3bea5e8b1f1171044cfbade68444ed4f95d842fafac1fd16c95
BLAKE2b-256 checksum
How to use checksums
1658c19a25a99dcf443c57e119a99b4dd451cf0186a068d52a8e1f270e7cf3a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 21, 2025.

Transparency log

Release files / open_forms_ext_token_exchange-0.5.0-py3-none-any.whl

Download URL open_forms_ext_token_exchange-0.5.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f565d73b1395ede57608f6bab8bfc3ecfa5ee9f4935a26688b92429a58213b85
BLAKE2b-256 checksum
How to use checksums
61e24590c617a8e80e472b8cdd22cf1cb68bc9931a62c3c946d1904f1c27a5d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

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