JsAPI v3 embeds: reports can be embedded but dashboard denies permission
Answered
We finished developing a dashboard and are ready to deploy it to the public. It has three reports in it. When we test those, they embed in our public webpage correctly. But the dashboard itself will not display, the webpage returns a popup "ERROR: Login Required."
The dashboard is in the same folder as the reports. It's marked unsecure. I've tried experimenting with Guest User / Public User permissions in the admin console, none of that seemed to help. Can you advise on what settings we should investigate to solve this?
Hi Sam,
Apologies for the delay.
The pre-requisites for embedding yellowfin content would be to ensure CORS(Cross Origin Resource Sharing), External Base URL, current session of user having access to the content. As you were able to access the reports from the webpage, I believe CORS and External Base URL seem to be pointed correctly. I suspect, the issue would be around the access to the content.
Could you please confirm if the current user has the access to the dashboard. And would also like to know if other dashboards from the same folder work fine?
Regards,
Deepak
Hi Sam,
Apologies for the delay.
The pre-requisites for embedding yellowfin content would be to ensure CORS(Cross Origin Resource Sharing), External Base URL, current session of user having access to the content. As you were able to access the reports from the webpage, I believe CORS and External Base URL seem to be pointed correctly. I suspect, the issue would be around the access to the content.
Could you please confirm if the current user has the access to the dashboard. And would also like to know if other dashboards from the same folder work fine?
Regards,
Deepak
Hi Sam,
Thanks for the information.
I believe there are two things here: 1) Setting up the guest user and providing access to content and 2) Could be an issue with SameSite cookie in browser which YF versions older than 9.3 can't handle.
1. To double check the guest user setup and unauthenticated access to content, please refer to the article.
2. If we have a version older than 9.3 (Please look into /info.jsp page to check version), then the possible solutions could be:
a) Upgrade YF to 9.3 or above as they have some built in functionality to handle SameSite.
b) Or if upgrade is not feasible at this time, add some configuration changes as outlined in the article that could resolve the Samesite issue.
And alternatively, could you please try to change v3 to v2 in the script for the dashboard (just a trail to see if we can get around temporarily).
Example: Before change: <script type="text/javascript" src="http://localhost:9620/JsAPI/v3?reportUUID=05aef907-c262-41ed-a9f2-75c36a091920"></script>.
After change: <script type="text/javascript" src="http://localhost:9620/JsAPI/v2?reportUUID=05aef907-c262-41ed-a9f2-75c36a091920"></script>
Please let me know if that helps.
Best Regards,
Deepak
Hi Sam,
Thanks for the information.
I believe there are two things here: 1) Setting up the guest user and providing access to content and 2) Could be an issue with SameSite cookie in browser which YF versions older than 9.3 can't handle.
1. To double check the guest user setup and unauthenticated access to content, please refer to the article.
2. If we have a version older than 9.3 (Please look into /info.jsp page to check version), then the possible solutions could be:
a) Upgrade YF to 9.3 or above as they have some built in functionality to handle SameSite.
b) Or if upgrade is not feasible at this time, add some configuration changes as outlined in the article that could resolve the Samesite issue.
And alternatively, could you please try to change v3 to v2 in the script for the dashboard (just a trail to see if we can get around temporarily).
Example: Before change: <script type="text/javascript" src="http://localhost:9620/JsAPI/v3?reportUUID=05aef907-c262-41ed-a9f2-75c36a091920"></script>.
After change: <script type="text/javascript" src="http://localhost:9620/JsAPI/v2?reportUUID=05aef907-c262-41ed-a9f2-75c36a091920"></script>
Please let me know if that helps.
Best Regards,
Deepak
Thanks Deepak. The problem has been resolved. I'm not positive how. As best I can tell, it was one of those dashboard settings that did the trick, from my screenshot, and maybe it took a while to take effect (?) so it appeared not to work at first.
At any rate, I'm set on this one and you can close the issue, thanks.
Thanks Deepak. The problem has been resolved. I'm not positive how. As best I can tell, it was one of those dashboard settings that did the trick, from my screenshot, and maybe it took a while to take effect (?) so it appeared not to work at first.
At any rate, I'm set on this one and you can close the issue, thanks.
Hi Sam,
Thanks for the confirmation.
These settings apply as soon as we hit the save button. Not sure why it took some time to apply. I guess, there might be some other action performed that allowed access to the dashboard.
Anyway, I am glad that it got fixed. I will mark this as resolved for now.
Please feel free to reach out if there are any issues.
Warm Regards,
Deepak
Hi Sam,
Thanks for the confirmation.
These settings apply as soon as we hit the save button. Not sure why it took some time to apply. I guess, there might be some other action performed that allowed access to the dashboard.
Anyway, I am glad that it got fixed. I will mark this as resolved for now.
Please feel free to reach out if there are any issues.
Warm Regards,
Deepak
Replies have been locked on this page!