How can I embed Superset Apache into Flask web app? How can I embed Superset Apache into Flask web app? flask flask

How can I embed Superset Apache into Flask web app?


It is possible to embed Apache Superset in any web application using iframe. Copy the URL of the dashboard that you want to embed and add ?standalone=true at the end. This URL can be used in the iframe to render the application.

Problem with the solution:

In the above mentioned method you will be seeing login page inside the iframe when you access the dashboard. You will have to login to the web application and then login to Superset.

Possible solutions

  1. You can make the dashboard public as mentioned in the doc: https://superset.incubator.apache.org/security.html?highlight=public#public
  2. Implement a custom authenticator as mentioned in the post: https://medium.com/@sairamkrish/apache-superset-custom-authentication-and-integrate-with-other-micro-services-8217956273c1

I would recommend the second approach as it would give protection to your data.