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:
2025-09-22 20:27:01 +02:00
parent 1baed62078
commit 08720a43c1

View File

@@ -35,10 +35,10 @@ OAUTH_SCOPES=openid email profile
# Optional: Role Management # Optional: Role Management
# ========================= # =========================
# Enable automatic role mapping from token claims # Enable automatic role mapping from token claims
# ENABLE_OAUTH_ROLE_MANAGEMENT=true ENABLE_OAUTH_ROLE_MANAGEMENT=true
# OAUTH_ROLES_CLAIM=roles OAUTH_ROLES_CLAIM={{ RBAC.GROUP.CLAIM }}
# OAUTH_ALLOWED_ROLES=user # OAUTH_ALLOWED_ROLES=user
# OAUTH_ADMIN_ROLES=admin OAUTH_ADMIN_ROLES={{ [ RBAC.GROUP.NAME, application_id ~ '-administrator' ] | path_join }}
# ========================= # =========================
# Optional: Group Management # Optional: Group Management