mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Doc: Add groups mapping config to readme (#58208)
This commit is contained in:
parent
17f7cbf0f6
commit
e3ea7ee145
@ -11,7 +11,7 @@ Here is the conf you need to add to your configuration file (conf/custom.ini):
|
|||||||
|
|
||||||
```ini
|
```ini
|
||||||
[auth]
|
[auth]
|
||||||
signout_redirect_url = http://localhost:8087/auth/realms/grafana/protocol/openid-connect/logout?redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Flogin
|
signout_redirect_url = http://localhost:8087/realms/grafana/protocol/openid-connect/logout?redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Flogin
|
||||||
|
|
||||||
[auth.generic_oauth]
|
[auth.generic_oauth]
|
||||||
enabled = true
|
enabled = true
|
||||||
@ -23,6 +23,7 @@ scopes = openid email profile offline_access roles
|
|||||||
email_attribute_path = email
|
email_attribute_path = email
|
||||||
login_attribute_path = username
|
login_attribute_path = username
|
||||||
name_attribute_path = full_name
|
name_attribute_path = full_name
|
||||||
|
groups_attribute_path = groups
|
||||||
auth_url = http://localhost:8087/realms/grafana/protocol/openid-connect/auth
|
auth_url = http://localhost:8087/realms/grafana/protocol/openid-connect/auth
|
||||||
token_url = http://localhost:8087/realms/grafana/protocol/openid-connect/token
|
token_url = http://localhost:8087/realms/grafana/protocol/openid-connect/token
|
||||||
role_attribute_path = contains(roles[*], 'grafanaadmin') && 'GrafanaAdmin' || contains(roles[*], 'admin') && 'Admin' || contains(roles[*], 'editor') && 'Editor' || 'Viewer'
|
role_attribute_path = contains(roles[*], 'grafanaadmin') && 'GrafanaAdmin' || contains(roles[*], 'admin') && 'Admin' || contains(roles[*], 'editor') && 'Editor' || 'Viewer'
|
||||||
|
Loading…
Reference in New Issue
Block a user