Init grafana OAuth2 with Authentik
Per Authentik: https://goauthentik.io/integrations/services/grafana/ And Grafana: https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/generic-oauth/
This commit is contained in:
parent
540834c4d2
commit
ba1ae131d9
@ -6,4 +6,17 @@ root_url = %(protocol)s://%(domain)s/
|
||||
force_migration = true
|
||||
|
||||
[auth.anonymous]
|
||||
enabled = true
|
||||
enabled = true
|
||||
|
||||
[auth.generic_oauth]
|
||||
name = OAuth
|
||||
icon = signin
|
||||
enabled = true
|
||||
client_id = ***REMOVED***
|
||||
client_secret = ***REMOVED***
|
||||
scopes = email openid profile
|
||||
empty_scopes = false
|
||||
auth_url = https://authentik.jafner.net/application/o/authorize/
|
||||
token_url = https://authentik.jafner.net/application/o/token/
|
||||
api_url = https://authentik.jafner.net/application/o/userinfo/
|
||||
role_attribute_path = contains(groups[*], 'Grafana Admins') && 'Admin' || contains(groups[*], 'Grafana Editors') && 'Editor' || 'Viewer'
|
Loading…
Reference in New Issue
Block a user