How does the /api/v1/security/guest_token/ works #29824
Replies: 1 comment 5 replies
-
|
The
Here is an example of how the guest token is used in the frontend: import { embedDashboard } from "@superset-ui/embedded-sdk";
embedDashboard({
id: "abc123", // given by the Superset embedding UI
supersetDomain: "https://superset.example.com",
mountPoint: document.getElementById("my-superset-container"), // any html element that can contain an iframe
fetchGuestToken: () => fetchGuestTokenFromBackend(),
dashboardUiConfig: { // dashboard UI config: hideTitle, hideTab, hideChartControls, filters.visible, filters.expanded (optional), urlParams (optional)
hideTitle: true,
filters: {
expanded: true,
},
urlParams: {
foo: 'value1',
bar: 'value2',
// ...
}
},
});
In summary, the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How does the /api/v1/security/guest_token/ end point works in superset? What is the exact detailed flow of generating a guest_token in superset ? The general access_token passed in the header of this request, what happens to that, how does everything exactly works?
Beta Was this translation helpful? Give feedback.
All reactions