Why does private embed redirect to login page?
I am trying to implement a private embed using programmatic filtering, based upon the .NET sample, but instead of displaying the dashboard it tries to load the login page (which is blocked from displaying in an iframe).
I have successfully obtained an embedToken and I believe I'm sending it correctly via a form that auto-submits, but I always get a 302 response sending me to
https://<company>.domo.com/auth/index
I've tried it with credentials that have limited scopes and ones that have all the scopes with the same result. I've verified that the embed token has information about the dashboard I am trying to access:
{ "sub": "xxx", "nbf": 1736457405, "dom": "<company>.domo.com", "iss": "apiEmbed", "emb": [ "{\"token\":\"<embedId>\",\"linkType\":\"PRIVATE\",\"permissions\":[\"READ\",\"EXPORT\",\"FILTER\"]}" ], "exp": 1736486215, "iat": 1736457415, "jti": "xxx" }
Any ideas?
Answers
-
Private Embed is built around the assumption that a users has a login and access to Domo and is built using a user model. A public embed is around an embed model where it counts the number of times the page is displayed and doesn't require a user to log in but will expose your dashboard to anyone who has access to the dashboard. You could leverage a service account to authenticate on the server back end and pass in with your embed experience.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Hi Grant, I'm afraid I'm a bit confused.
The documentation for Programmatic Filtering says this:
If you prefer not to work through the licensing and provisioning of mirror users both in your systems and Domo, the main alternative is to persist the policies you have already setup in your systems by applying Programmatic Filters in server-side code. This way, you can still personalize embedded content for any number of viewers even if they do not have a Domo account.
So our assumption was that the client id / secret authentication and the generation of the embed token was the only authentication that would be required to display the token. Currently the credetials are associated with a Domo Administrator who has access to the Dashboards we are testing with.
Are you saying that even with this embed mechanism, the user who visits the page with the embedded dashboard would still need their own Domo login?
Thanks, Andrew
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 302 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 635 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 760 Beast Mode
- 64 App Studio
- 42 Variables
- 701 Automate
- 182 Apps
- 457 APIs & Domo Developer
- 52 Workflows
- 10 DomoAI
- 39 Predict
- 16 Jupyter Workspaces
- 23 R & Python Tiles
- 401 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 8 Software Integrations
- 131 Manage
- 128 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive