Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
We have setup in our organization an application associated with a Service Principal (following those guides: https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers and https://docs.microsoft.com/en-us/power-bi/developer/embed-service-principal).
The backend of the application retrieves an embed token for a report (using https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/reports_generatetokeningroup) which is then used by the frontend with the powerbi javascript library (https://www.npmjs.com/package/powerbi-client) to show the report in the user's browser.
The problem is that in some specific cases, the API calls made by powerbi-client returns 401 errors, while for other users, with the exact same embed token and report, everything works without problem.
We noticed that it happened to the user that had previously logged to powerbi service (https://app.powerbi.com/) using a Free PowerBI Account. If they clear the cookies from their browser for the powerbi.com domain, then everything works as expected.
I believe that the API serving the report using embed token should be ignoring any cookie and other identification and only exploit the embed token to validate the request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.