Repository navigation
Keycloak admin only dashboard edit #634
|
Per this discussion, I can't figure out how to I am breaking this post off of the previously solved discussion because it may have gotten lost. How do I set in this example config I have the docs show the example when using built-in auth only from what I could find I don't pretend to know what I'm doing, but it seems like only and I can't find where keycloak users/groups/roles can have a type: |
Replies: 1 comment
|
You don't give Keycloak users a appConfig:
disableConfigurationForNonAdmin: true
auth:
enableGuestAccess: true
enableKeycloak: true
keycloak:
serverUrl: https://keycloak.url
realm: Dashy
clientId: clientid
adminRole: role1Anyone with Saving to disk is checked on Dashy's server against the ID token, so the role needs to be in there too. Easiest with a realm role - add a "User Realm Role" mapper with "Add to ID token" switched on, as in the Keycloak docs. Then restart Dashy, and log out and back in so you get a fresh token. |
You don't give Keycloak users a
type- instead you tell Dashy which Keycloak role (or group) counts as admin, withadminRoleoradminGroup. Then swapdisableConfigurationfordisableConfigurationForNonAdmin, becausedisableConfiguration: trueswitches the config UI off for everyone, admins included.allowConfigEditcan go too, it doesnt do anything.Anyone with
role1then gets the config menu, and everyone else (guests included) doesn't. If you'd rather do it by…