mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-17 16:47:51 +00:00
feat: enhance admin role checks to support multiple roles configuration (#43)
Signed-off-by: Noste <83548733+Noooste@users.noreply.github.com>
This commit is contained in:
@@ -84,9 +84,13 @@ config:
|
||||
email_attribute: "email"
|
||||
username_attribute: "preferred_username"
|
||||
name_attribute: "name"
|
||||
# Role-based access control
|
||||
# Role-based access control.
|
||||
# Set admin_role (single value, backward-compatible) and/or admin_roles
|
||||
# (list). Values from both are merged: a user is granted admin if ANY
|
||||
# of their roles matches ANY entry across these two fields.
|
||||
role_attribute_path: "resource_access.garage-ui.roles"
|
||||
admin_role: "admin"
|
||||
admin_roles: []
|
||||
# TLS settings
|
||||
tls_skip_verify: false
|
||||
# Session settings
|
||||
|
||||
Reference in New Issue
Block a user