Embed Kibana Visualizations in HTML Page

Similarly to this question we want to embed a vizualisation in an external web page. However, the solution given there, "use the iframe src from the dashboard" does not work. The dashboard does not use iframes and when we try to frame a vizualization the authentication is blocked.

This works great with Kibana when no authentication is required using the ?embed=true parameter:
http://mykibana:5601/app/kibana#/visualize/edit/605819e0-e0e2-11ec-be43-71d7f7eb4639?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-30d,mode:relative,to:now))&_a=(filters:!(),interval:auto,query:(language:kuery,query:'id%3A+1569'),sort:!(timestamp,desc))&&embed=true

However, if authentication is enabled, even if we are logged in to kibana, the iframe URL does not work:
https://mykibana/s/customer-experience-applications/app/visualize#/edit/e031c980-e0e3-11ec-be43-71d7f7eb4639?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-30d,mode:relative,to:now))&_a=(filters:!(),interval:auto,query:(language:kuery,query:'id%3A+1569'),sort:!(timestamp,desc))&&embed=true

The Console in Chrome shows a blocked request:
POST https://logservice.buhler-ltd.com/api/security/v1/saml 401 (Unauthorized)

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.