Skip to content

vddenis/apache-superset-embedded-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Simple React App with Apache Superset embedded dashboards
Based on this documentation: https://www.npmjs.com/package/@superset-ui/embedded-sdk?activeTab=readme

For embedding dashboards you need to implement these options to your superset-config.py:

FEATURE_FLAGS = {..., "EMBEDDED_SUPERSET": True}
# Dashboard embedding
GUEST_ROLE_NAME = "Gamma"
GUEST_TOKEN_JWT_SECRET = "your-secret"
GUEST_TOKEN_JWT_ALGO = "HS256"
GUEST_TOKEN_HEADER_NAME = "X-GuestToken"
GUEST_TOKEN_JWT_EXP_SECONDS = 300  # 5 minutes
WTF_CSRF_ENABLED = False
ENABLE_CORS = True

And provide some changes to App.js. You may need to switch your superset to HTTPS instead of HTTP if you want to use your dashboards on HTTPS sites.

How generated iframe will look like with manual sizing: picture

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published