diff --git a/homelab/server/config/monitoring/custom.ini b/homelab/server/config/monitoring/custom.ini index 2907c3a6..67ce592a 100644 --- a/homelab/server/config/monitoring/custom.ini +++ b/homelab/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 = ***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' \ No newline at end of file