Remove misleading double-quotes around GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH

This commit is contained in:
Slavi Pantaleev 2023-07-09 16:39:32 +03:00
parent f9795981b6
commit fe5f8c65cc

View file

@ -108,7 +108,7 @@ grafana_environment_variables_additional_variables: |
#GF_AUTH_OAUTH_AUTO_LOGIN="true" #GF_AUTH_OAUTH_AUTO_LOGIN="true"
GF_AUTH_GENERIC_OAUTH_ALLOW_ASSIGN_GRAFANA_ADMIN=true GF_AUTH_GENERIC_OAUTH_ALLOW_ASSIGN_GRAFANA_ADMIN=true
# Optionally map user groups to Grafana roles # Optionally map user groups to Grafana roles
GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH="contains(groups[*], 'Grafana Admins') && 'Admin' || contains(groups[*], 'Grafana Editors') && 'Editor' || 'Viewer'" GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH=contains(groups[*], 'Grafana Admins') && 'Admin' || contains(groups[*], 'Grafana Editors') && 'Editor' || 'Viewer'
``` ```
Make sure the user you want to login as has an email address in authentik, otherwise there will be an error. Make sure the user you want to login as has an email address in authentik, otherwise there will be an error.