simple_module_keycloak
Keycloak OIDC authentication provider for simple_module. Swap with simple_module_users for Keycloak-backed identity management — users, roles, and login all handled by Keycloak.
Install
Add to your app's pyproject.toml dependencies instead of simple_module_users:
dependencies = [
"simple_module_keycloak==0.0.17",
]
Run uv sync --all-packages to install.
Usage
Set the required environment variables (or configure via the settings admin UI after first boot):
SM_KEYCLOAK_SERVER_URL=https://keycloak.example.com
SM_KEYCLOAK_REALM=my-realm
SM_KEYCLOAK_CLIENT_ID=my-app
SM_KEYCLOAK_CLIENT_SECRET=my-secret
The module auto-registers as the auth provider. Browser users are redirected to Keycloak's hosted login page. Mobile clients authenticate directly with Keycloak and send bearer tokens to the framework API.
Keycloak realm roles are mapped to framework permissions via the role_mapping setting (default: admin and user map 1:1).
Metadata
Release files for simple-module-keycloak 0.0.38
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 | |
|---|---|---|---|---|
| simple_module_keycloak-0.0.38.tar.gz | 25.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_module_keycloak-0.0.38-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.3 kB
Release files / simple_module_keycloak-0.0.38.tar.gz
| Download URL | simple_module_keycloak-0.0.38.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09e0b38ce789af0ae9a5ad48eea44faec8ea0fff73d5c6be252bcaef7ff693e8
|
|
BLAKE2b-256 checksum How to use checksums |
6845404fcb12545b242ab2c18f5f1b952407d33850943f12c8f4979a8cc1cea4
|
| 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 Oct 23, 2026.
Transparency logRelease files / simple_module_keycloak-0.0.38-py3-none-any.whl
| Download URL | simple_module_keycloak-0.0.38-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
456d63542c7034d9c7a45555fdb36804cff7292394f369bf0293795e43f26031
|
|
BLAKE2b-256 checksum How to use checksums |
1342e09c3b80ae2cb8782397ca4da0465c99e9234f62824525280da750787eec
|
| 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 Oct 23, 2026.
Transparency logSecurity for simple-module-keycloak 0.0.38
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for simple_module_keycloak-0.0.38.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 Oct 23, 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.