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 }}