Hi. We are able to render the dashboard url into an iframe. Is there any way the url can be protected as now, anyone with the url can access the information.
We want to make sure the data is safe and not being able to access by any unauthorised personnel with the link.
Hi @Gokul_Raj -
Yes you can do this, but you need to embed using the Embedding SDK, not the iframe method. The basic approach is follows:
- Enable authentication on your page, and securely obtain a JWT token for the logged in user
- In Charts, configure an Embedding Authentication Provider with the signing key used for your JWTs.
- Embed the chart using the Embedding SDK, and pass the JWT using the
getUserToken
callback.
For details and examples see Configure Embedding Authentication Providers — MongoDB Charts
Tom
3 Likes