Hi guys, is there any standard way to authenticate the iframes used in external websites, as most of us we are also not interested in anonymous access.
You can utilize standard SSO protocol- that’s designed for that. For example Open ID Connect (OIDC). Website and also Grafana will use OIDC for auth. Website will authenticate user first and then iframed Grafana will just use existing SSO session, so Grafana will get token seamlessly.
Of course everything has pros and cons. Problem can be when website doesn’t request auth before iframe, so iframed Grafana will be requesting auth first. But typical IDP (OIDC) server doesn’t allow login in the iframe.
Yes, it is Open ID Connect standard (which is based on OAuth2 standard), which is provided by Identity Provider (that can be Azure, Google, AWS Cognito, Keycloak, … - anything what support OIDC; used Identity Provider can have users also everywhere: LDAP, AD, DB, …).
Keep in mind: all this kind of iframed solutions may have be restricted in the future by the browser security (probably Safari is the most strict browser for this use case at the moment).