Setting up auto login

Grafana 10.4.1 on windows 10

  • Trying to set up auto log in into Grafana on localhost from an iframe inside a web application.


What happened?

  • No auto login was made, currently I can “bypass” with anonymous login.


What did you expect to happen?

  • to get my current logged in user details and log in into Grafana.


Can you copy/paste the configuration(s) that you are having problems with?

[server]

  • protocol = http
  • http_addr = 127.0.0.1
  • http_port = 8080
  • domain = 127.0.0.1
  • enforce_domain = false

[security]

  • allow_embedding = true

[auth]

  • login_cookie_name = grafana_session
  • disable_login = false
  • login_maximum_inactive_lifetime_duration =
  • login_maximum_lifetime_duration =
  • token_rotation_interval_minutes = 10
  • disable_login_form = false
  • api_key_max_seconds_to_live = -1

[auth.anonymous]

  • enabled = true
  • org_name = Main Org.
  • org_role = Viewer

[auth.basic]

  • enabled = false

[auth.proxy]

  • enabled = true
  • header_name = X-WEBAUTH-USER
  • header_property = username
  • auto_sign_up = true
  • sync_ttl = 60
  • whitelist = 192.168.1.1, 192.168.2.1
  • headers = Email:X-User-Email, Name:X-User-Name
  • whitelist =
  • headers =
  • enable_login_token = false


Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • No.


Did you follow any online instructions? If so, what is the URL?