Keycloak OIDC authentication provider for simple_module — swap with simple_module_users
Project description
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).
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 simple_module_keycloak-0.0.24.tar.gz.
File metadata
- Download URL: simple_module_keycloak-0.0.24.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6fe944ca7dfb91321de22241d1cf6614715ab7b1256ac4698c87b25ddad0bbb
|
|
| MD5 |
9974c4b8549195ac7574d3c1be1a50bc
|
|
| BLAKE2b-256 |
d1bca2955dff236cdd52f80909d66957a5b394fe2e9bc6973425fbcf5a0924c6
|
Provenance
The following attestation bundles were made for simple_module_keycloak-0.0.24.tar.gz:
Publisher:
release.yml on antosubash/simple_module_python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_module_keycloak-0.0.24.tar.gz -
Subject digest:
c6fe944ca7dfb91321de22241d1cf6614715ab7b1256ac4698c87b25ddad0bbb - Sigstore transparency entry: 2026373845
- Sigstore integration time:
-
Permalink:
antosubash/simple_module_python@35bb8df75943c017d7a7d581859027157488f1d9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/antosubash
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@35bb8df75943c017d7a7d581859027157488f1d9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file simple_module_keycloak-0.0.24-py3-none-any.whl.
File metadata
- Download URL: simple_module_keycloak-0.0.24-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49177284d7d5fb92123ad081d0752d83efac2e1e9ead552d8325cbe64083a6cf
|
|
| MD5 |
df5697cebce3b41864796c2f83a61977
|
|
| BLAKE2b-256 |
455ad23ca9877ed3534e3cbaa52cabf023e21aebeb4c0c575f28402281f5596b
|
Provenance
The following attestation bundles were made for simple_module_keycloak-0.0.24-py3-none-any.whl:
Publisher:
release.yml on antosubash/simple_module_python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_module_keycloak-0.0.24-py3-none-any.whl -
Subject digest:
49177284d7d5fb92123ad081d0752d83efac2e1e9ead552d8325cbe64083a6cf - Sigstore transparency entry: 2026373994
- Sigstore integration time:
-
Permalink:
antosubash/simple_module_python@35bb8df75943c017d7a7d581859027157488f1d9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/antosubash
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@35bb8df75943c017d7a7d581859027157488f1d9 -
Trigger Event:
workflow_dispatch
-
Statement type: