Girder plugin for OIDC/Keycloak authentication
Project description
Girder OIDC Plugin
A Girder plugin for OpenID Connect (OIDC) authentication via Keycloak.
Features
- OIDC/Keycloak integration with automatic user creation
- Admin panel configuration
- Secure token exchange using authorization code flow
- Automatic OIDC endpoint discovery
Installation
pip install -e .
Configuration
In the Girder admin panel, go to OIDC/Keycloak Configuration and set:
- Keycloak URL (Internal): Internal URL for server communication (e.g.,
https://keycloak:8443) - Keycloak Public URL: Public URL for browser redirects (e.g.,
https://localhost:8443) - Keycloak Realm: Realm name (e.g.,
girder) - Client ID: OIDC client ID
- Client Secret: OIDC client secret
- Enable OIDC: Enable authentication
- Auto Create Users: Create Girder users automatically
- Allow Registration: Allow new user registration
Keycloak Setup
-
Create an OIDC client in Keycloak:
- Access Type:
confidential - Valid Redirect URIs:
https://your-girder-host/api/v1/oidc/callback
- Access Type:
-
Copy the client credentials to Girder configuration
API Endpoints
GET /api/v1/oidc/configuration- Get config (admin only)PUT /api/v1/oidc/configuration- Update config (admin only)GET /api/v1/oidc/login?redirect=URL- Get authorization URLGET /api/v1/oidc/callback- Callback from Keycloak
Development
pytest plugin_tests/
License
Apache 2.0
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
girder_oidc-0.0.1.tar.gz
(20.1 kB
view details)
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 girder_oidc-0.0.1.tar.gz.
File metadata
- Download URL: girder_oidc-0.0.1.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff4ccf5e882a8884ee25ae6e86514c259984950b127b3e7d33d166e51a9bb4f7
|
|
| MD5 |
7f31c1234c41b8b88367dc1026cf5a8f
|
|
| BLAKE2b-256 |
cfeb882ddea7f6c815f9dce80d8fd6dff5ef35e8347fcce902b7d09f9fb20c09
|
File details
Details for the file girder_oidc-0.0.1-py3-none-any.whl.
File metadata
- Download URL: girder_oidc-0.0.1-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
239aed4c594851c44f7e1d5310ce162952995a2d18568df30870ef3c982af432
|
|
| MD5 |
47ecb3a6964bacadba4138ef8f969941
|
|
| BLAKE2b-256 |
c14d5d663d8c9d07dfda78aa36b6df4f43a41a1a41b068b4b95ac885f5aa556d
|