Embed Grafana graph as iframe with authentication via API Key

I’m trying to embed a Grafana graph on my web page, currently as an Iframe. I understand from this thread here that an API Key can’t authenticate the UI (shucks!).

I’m using oauth to authenticate to get to the web application, and I would prefer not to use anonymous authentication for that, but I don’t mind anonymous authentication specifically for the embedded Iframe. Is this possible? If not is there any workaround for me?

Cheers

In case someone ends up here from Google, this is a frequently asked question, unfortunately without a good answer.

For more information, check out this answer:

And join the discussion in Automatic login by token url

UPDATE: common question we wrote a blog about, the 2023 best answer is here, and to do this with secure authentication is tricky, caveats apply, for those who arrive by google searching, please consider this advice:

2 Likes