Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@suddjian/superset-embedding-test
Advanced tools
The Embed SDK allows you to embed resources from Superset into your own app, using your app's authentication.
embedDashboard({
id: dashboardId,
supersetDomain,
mountPoint,
fetchGuestToken: () => guestToken,
});
Embedded resources use an auth token called a Guest Token to grant access to your users, without requiring your users to log in to Superset directly.
Your backend requests a Guest Token from Superset using the POST /security/guest_token
endpoint,
and passes that guest token to your frontend.
The Embedding SDK takes the guest token and use it to embed a dashboard.
From the backend, http POST
to /security/guest_token
with some parameters to define what the guest token will grant access to.
Guest tokens can have Row Level Security rules which filter data for the user carrying the token.
The agent making the POST
request must be authenticated with the can_create_guest_token
permission.
Example POST /security/guest_token
payload:
{
"user": {
"username": "stanlee",
"first_name": "Stan",
"last_name": "Lee"
},
"resources": [{
"type": "dashboard",
"id": "abc123"
}],
"rls": [
{ "clause": "publisher = 'Nintendo'" }
]
}
FAQs
Embedded SDK for Superset
The npm package @suddjian/superset-embedding-test receives a total of 1 weekly downloads. As such, @suddjian/superset-embedding-test popularity was classified as not popular.
We found that @suddjian/superset-embedding-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.