auto login with Grafana

48 views Asked by At

Grafana version and OS: Grafana 10.4.1 enterprise on windows 10

I'm trying to run Grafana (app not only dashboards/snapshots) inside an iframe in my web app, and I want to avoid having the users need to log in to Grafana when they are logged in into my website.

currently I can "bypass" with anonymous login.

that's my custom.ini file:

[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 =

headers =

 enable_login_token = false

I followed these instructions:

0

There are 0 answers