diff --git a/server/config/monitoring/custom.ini b/server/config/monitoring/custom.ini index 2907c3a..e7f3e8e 100644 --- a/server/config/monitoring/custom.ini +++ b/server/config/monitoring/custom.ini @@ -6,4 +6,17 @@ root_url = %(protocol)s://%(domain)s/ force_migration = true [auth.anonymous] -enabled = true \ No newline at end of file +enabled = true + +[auth.generic_oauth] +name = OAuth +icon = signin +enabled = true +client_id = 03e63420c70d5c7690b063918dd90f409f713baa +client_secret = a5b60606a3756dcf49e6a43eb3e581914fbc97a96e566bd1b84f42149cdc3b66d4cc93dca49d354f7ea61c5d97f0e61db2e8d3b2c4a162311d3548f19ecf791d +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' \ No newline at end of file