mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-24 11:06:24 +02:00
feat(web-app-openwebui): enable OIDC role-based admin mapping
Activate ENABLE_OAUTH_ROLE_MANAGEMENT and configure OAUTH_ROLES_CLAIM from RBAC.GROUP.CLAIM. Define OAUTH_ADMIN_ROLES dynamically based on RBAC group and application administrator naming convention. Conversation: https://chatgpt.com/share/68d18e02-d6b8-800f-aaab-920c61b9284a
This commit is contained in:
@@ -35,10 +35,10 @@ OAUTH_SCOPES=openid email profile
|
||||
# Optional: Role Management
|
||||
# =========================
|
||||
# Enable automatic role mapping from token claims
|
||||
# ENABLE_OAUTH_ROLE_MANAGEMENT=true
|
||||
# OAUTH_ROLES_CLAIM=roles
|
||||
ENABLE_OAUTH_ROLE_MANAGEMENT=true
|
||||
OAUTH_ROLES_CLAIM={{ RBAC.GROUP.CLAIM }}
|
||||
# OAUTH_ALLOWED_ROLES=user
|
||||
# OAUTH_ADMIN_ROLES=admin
|
||||
OAUTH_ADMIN_ROLES={{ [ RBAC.GROUP.NAME, application_id ~ '-administrator' ] | path_join }}
|
||||
|
||||
# =========================
|
||||
# Optional: Group Management
|
||||
|
Reference in New Issue
Block a user