{"id":8610,"date":"2025-02-24T10:20:24","date_gmt":"2025-02-24T04:50:24","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=8610"},"modified":"2025-02-24T10:20:32","modified_gmt":"2025-02-24T04:50:32","slug":"embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/","title":{"rendered":"Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p>Apache Superset is a powerful business intelligence tool that allows users to create dashboards and visualize data effectively. In this guide, we will walk through the steps required to embed a Superset dashboard into a private website with authentication and Row-Level Security (RLS).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h2>\n\n\n\n<p>Before starting, ensure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Superset installed and running<\/li>\n\n\n\n<li>A configured Superset user with embed permissions<\/li>\n\n\n\n<li>A React frontend or another web framework ready for embedding<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 1: Enable Embedding in Superset<\/strong><\/h2>\n\n\n\n<p>To embed Superset dashboards, update the Superset configuration file (superset_config.py) with the following settings:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><em># Enable the embedded Superset feature<\/em><br>FEATURE_FLAGS = {<br>&nbsp; &nbsp; &#8220;EMBEDDED_SUPERSET&#8221;: True<br>}<br><br><em># Enable Cross-Origin Resource Sharing (CORS)<\/em><br>ENABLE_CORS = True<br>CORS_OPTIONS = {<br>&nbsp; &nbsp; &#8220;supports_credentials&#8221;: True,<br>&nbsp; &nbsp; &#8220;allow_headers&#8221;: &#8220;*&#8221;,<br>&nbsp; &nbsp; &#8220;expose_headers&#8221;: &#8220;*&#8221;,<br>&nbsp; &nbsp; &#8220;resources&#8221;: &#8220;*&#8221;,<br>&nbsp; &nbsp; &#8220;origins&#8221;: [&#8220;http:\/\/localhost:3000&#8221;]&nbsp; <em># React URL or frontend URL<\/em><br>}<br><br><em># Dashboard Embedding Configuration<\/em><br>GUEST_ROLE_NAME = &#8220;Gamma&#8221;<br>GUEST_TOKEN_JWT_SECRET = &#8220;PASTE_GENERATED_SECRET_HERE&#8221;&nbsp; <em># Replace with a secure secret<\/em><br>GUEST_TOKEN_JWT_ALGO = &#8220;HS256&#8221;<br>GUEST_TOKEN_HEADER_NAME = &#8220;X-GuestToken&#8221;<br>GUEST_TOKEN_JWT_EXP_SECONDS = 300&nbsp; <em># Token expiry time set to 5 minutes<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>This configuration enables the embedding feature, sets up CORS, and configures authentication for embedding.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 2: Installing Dependencies<\/strong><\/h2>\n\n\n\n<p>In your React project, install the required packages:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><em># Using npm<\/em><br>npm install &#8211;save @superset-ui\/embedded-sdk axios<br><br><em># OR using Yarn<\/em><br>yarn add @superset-ui\/embedded-sdk axios<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 3: Generate an Authentication Token<\/strong><\/h2>\n\n\n\n<p>To authenticate and fetch the required token for embedding, we will create a function that generates the guest token. This logic should be placed in the backend, not in the frontend, for security reasons.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>import<\/strong> axios <strong>from<\/strong> &#8220;axios&#8221;;<br><br><strong>const<\/strong> supersetUrl = &#8216;http:\/\/YOUR_DASHBOARD_URL_HERE&#8217;; <em>\/\/ Replace with your Superset URL<\/em><br><strong>const<\/strong> supersetApiUrl = `${supersetUrl}\/api\/v1\/security`;<br><strong>const<\/strong> dashboardId = &#8220;EMBED_ID_HERE&#8221;; <em>\/\/ Replace with actual dashboard ID<\/em><br><br><strong>const<\/strong> getToken = <strong>async<\/strong> (): Promise&lt;string | null&gt; =&gt; {<br>&nbsp; &nbsp; <strong>try<\/strong> {<br>&nbsp; &nbsp; &nbsp; &nbsp; <em>\/\/ Step 1: Authenticate and get access token<\/em><br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> loginBody = {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; username: &#8220;YOUR_USERNAME_WITH_EMBED_N_DASHBOARD_PERMISSION&#8221;, <em>\/\/ Use a dedicated user with limited permissions<\/em><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password: &#8220;YOUR_PASSWORD_WITH_EMBED_N_DASHBOARD_PERMISSION&#8221;,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; provider: &#8220;db&#8221;,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; refresh: true,<br>&nbsp; &nbsp; &nbsp; &nbsp; };<br><br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> loginResponse = <strong>await<\/strong> axios.post(`${supersetApiUrl}\/login`, loginBody, {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; headers: { &#8220;Content-Type&#8221;: &#8220;application\/json&#8221; },<br>&nbsp; &nbsp; &nbsp; &nbsp; });<br><br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> accessToken = loginResponse.data.access_token;<br>&nbsp; &nbsp; &nbsp; &nbsp; console.log(&#8220;Access Token:&#8221;, accessToken);<br><br>&nbsp; &nbsp; &nbsp; &nbsp; <em>\/\/ Step 2: Generate guest token for embedding<\/em><br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> guestTokenBody = {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resources: [{ <strong>type<\/strong>: &#8220;dashboard&#8221;, id: dashboardId }],<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rls: [], <em>\/\/ Configure Row-Level Security if needed<\/em><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user: {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; username: &#8220;report-viewer&#8221;,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; first_name: &#8220;report-viewer&#8221;,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; last_name: &#8220;report-viewer&#8221;,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br>&nbsp; &nbsp; &nbsp; &nbsp; };<br><br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> guestTokenResponse = <strong>await<\/strong> axios.post(`${supersetApiUrl}\/guest_token\/`, guestTokenBody, {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; headers: {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8220;Content-Type&#8221;: &#8220;application\/json&#8221;,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Authorization: `Bearer ${accessToken}`,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br>&nbsp; &nbsp; &nbsp; &nbsp; });<br><br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>return<\/strong> guestTokenResponse.data.token;<br>&nbsp; &nbsp; } <strong>catch<\/strong> (error) {<br>&nbsp; &nbsp; &nbsp; &nbsp; console.error(&#8220;Error fetching Superset token:&#8221;, error);<br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>return<\/strong> null;<br>&nbsp; &nbsp; }<br>};<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 4: Embedding the Superset Dashboard in React<\/strong><\/h2>\n\n\n\n<p>Now, use the generated token to embed the Superset dashboard into your React application.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>import<\/strong> React, { useEffect } from &#8220;react&#8221;;<br><strong>import<\/strong> { embedDashboard } from &#8220;@superset-ui\/embedded-sdk&#8221;;<br><strong>import<\/strong> { Divider } from &#8220;@mui\/material&#8221;;<br><strong>import<\/strong> { useTheme, useMediaQuery } from &#8220;@mui\/material&#8221;;<br><strong>import<\/strong> { useSidebar } from &#8220;.\/sidebarcontext&#8221;;<br><br><strong>const<\/strong> AdminDashboard: React.FC = () =&gt; {<br>&nbsp; &nbsp; <strong>const<\/strong> theme = useTheme();<br>&nbsp; &nbsp; <strong>const<\/strong> isMobile = useMediaQuery(theme.breakpoints.down(&#8220;sm&#8221;));<br>&nbsp; &nbsp; <strong>const<\/strong> { isOpen } = useSidebar();<br>&nbsp; &nbsp; <strong>const <\/strong>supersetUrl =<strong> <\/strong>&#8216;http:\/\/YOUR_DASHBOARD_URL_HERE&#8217; <em>\/\/ Replace with your Superset URL<\/em><br>&nbsp; &nbsp; <strong>const<\/strong> dashboardId = &#8220;EMBED_ID_HERE&#8221;; <em>\/\/ Replace with actual dashboard ID<\/em><br><br>&nbsp; &nbsp; useEffect(() =&gt; {<br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> embedSupersetDashboard = <strong>async<\/strong> () =&gt; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> guestToken = <strong>await<\/strong> getToken();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>if<\/strong> (!guestToken) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console.error(&#8220;Failed to retrieve guest token.&#8221;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>return<\/strong>;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>const<\/strong> container = document.getElementById(&#8220;superset-container&#8221;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>if<\/strong> (container) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; embedDashboard({<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id: dashboardId,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supersetDomain: supersetUrl,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mountPoint: container, <em>\/\/ The HTML element where the dashboard will be embedded<\/em><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fetchGuestToken: <strong>async<\/strong> () =&gt; guestToken, <em>\/\/ Provide the generated token<\/em><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dashboardUiConfig: { hideTitle: <strong>true<\/strong> }, <em>\/\/ Hide dashboard title<\/em><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <strong>else<\/strong> {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console.error(&#8220;Superset container not found&#8221;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; };<br><br>&nbsp; &nbsp; &nbsp; &nbsp; embedSupersetDashboard();<br>&nbsp; &nbsp; }, []);<br><br>&nbsp; &nbsp; <strong>return<\/strong> (<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<em>\/* Divider for mobile layout adjustments *\/<\/em>}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {isMobile &amp;&amp; &lt;Divider style={{ marginTop: isOpen ? &#8220;0.5rem&#8221; : &#8220;auto&#8221; }} \/&gt;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<em>\/* Container to embed Superset dashboard *\/<\/em>}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style={{ display: &#8220;flex&#8221;, marginLeft: &#8220;10px&#8221;, marginTop: &#8220;5px&#8221;, backgroundColor: &#8220;#f3f3f4&#8221;, width: &#8220;100%&#8221;, height: &#8220;100vh&#8221; }}&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&#8221;superset-container&#8221; style={{ width: &#8220;100%&#8221;, height: &#8220;100%&#8221; }} \/&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/div&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/div&gt;<br>&nbsp; &nbsp; );<br>};<br><br><strong>export<\/strong> <strong>default<\/strong> AdminDashboard;<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Apache Superset is a powerful business intelligence tool that allows users to create dashboards and visualize data effectively. In this guide, we will walk through the steps required to embed a Superset dashboard into a private website with authentication and Row-Level Security (RLS). Prerequisites Before starting, ensure you have: Step&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":507,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-8610","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"h-entry","9":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Apache Superset is a powerful business intelligence tool that allows users to create dashboards and visualize data effectively. In this guide, we will walk through the steps required to embed a Superset dashboard into a private website with authentication and Row-Level Security (RLS). Prerequisites Before starting, ensure you have: Step&hellip; Continue Reading Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-24T04:50:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-24T04:50:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3837\" \/>\n\t<meta property=\"og:image:height\" content=\"2540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"bharat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"bharat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/\"},\"author\":{\"name\":\"bharat\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/5e146ea8682be704a2553a73c97c786b\"},\"headline\":\"Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)\",\"datePublished\":\"2025-02-24T04:50:24+00:00\",\"dateModified\":\"2025-02-24T04:50:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/\"},\"wordCount\":1030,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2025-02-24T04:50:24+00:00\",\"dateModified\":\"2025-02-24T04:50:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/5e146ea8682be704a2553a73c97c786b\",\"name\":\"bharat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d82d0f7350e396f4195f9cbac82c8173f0a2abae54e34fe15122bf92b23dca79?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d82d0f7350e396f4195f9cbac82c8173f0a2abae54e34fe15122bf92b23dca79?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d82d0f7350e396f4195f9cbac82c8173f0a2abae54e34fe15122bf92b23dca79?s=96&r=g\",\"caption\":\"bharat\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/bharat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Apache Superset is a powerful business intelligence tool that allows users to create dashboards and visualize data effectively. In this guide, we will walk through the steps required to embed a Superset dashboard into a private website with authentication and Row-Level Security (RLS). Prerequisites Before starting, ensure you have: Step&hellip; Continue Reading Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)","og_url":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2025-02-24T04:50:24+00:00","article_modified_time":"2025-02-24T04:50:32+00:00","og_image":[{"width":3837,"height":2540,"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png","type":"image\/png"}],"author":"bharat","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"bharat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/"},"author":{"name":"bharat","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/5e146ea8682be704a2553a73c97c786b"},"headline":"Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)","datePublished":"2025-02-24T04:50:24+00:00","dateModified":"2025-02-24T04:50:32+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/"},"wordCount":1030,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/","url":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"datePublished":"2025-02-24T04:50:24+00:00","dateModified":"2025-02-24T04:50:32+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/embedding-superset-dashboard-into-a-private-website-with-authentication-and-row-level-security-rls\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Embedding Superset Dashboard into a Private Website with Authentication and Row-Level Security (RLS)"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/5e146ea8682be704a2553a73c97c786b","name":"bharat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d82d0f7350e396f4195f9cbac82c8173f0a2abae54e34fe15122bf92b23dca79?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d82d0f7350e396f4195f9cbac82c8173f0a2abae54e34fe15122bf92b23dca79?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d82d0f7350e396f4195f9cbac82c8173f0a2abae54e34fe15122bf92b23dca79?s=96&r=g","caption":"bharat"},"url":"https:\/\/pheonixsolutions.com\/blog\/author\/bharat\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-2eS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/507"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=8610"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8610\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=8610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=8610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=8610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}