From 16e4c286031846c4a540d04b92c22f04ad08ec29 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 5 Jul 2023 10:04:27 +0200 Subject: [PATCH] grafana: Add OAUTH config --- templates/grafana.ini | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/templates/grafana.ini b/templates/grafana.ini index 3335a8a..1b972a3 100644 --- a/templates/grafana.ini +++ b/templates/grafana.ini @@ -43,3 +43,20 @@ enabled = false [plugin.grafana-image-renderer] rendering_timezone = Europe/Berlin rendering_language = de-DE + +[auth] +signout_redirect_url = {{ grafana_auth_signout_redirect_url }} +oauth_auto_login = false + +[auth.generic_oauth] +name = {{ grafana_auth_generic_oauth_name }} +{% if grafana_auth_generic_oauth_enabled is defined and grafana_auth_generic_oauth_enabled %} +enabled = true +{% endif %} +client_id = {{ grafana_auth_generic_oauth_client_id }} +client_secret = {{ grafana_auth_generic_oauth_client_secret }} +scopes = openid email profile +auth_url = {{ grafana_auth_generic_oauth_auth_url }} +token_url = {{ grafana_auth_generic_oauth_token_url }} +api_url = {{ grafana_auth_generic_oauth_api_url }} +role_attribute_path = {{ grafana_auth_generic_oauth_role_attribute_path }}