akshay5995 / powerbi-report-component

Easily embed your Microsoft PowerBI Report, Dashbord or Tile in your React App
http://akshay5995.github.io/powerbi-report-component
MIT License
55 stars 30 forks source link

[BUG] I am trying to use aad token to embed the report, but when the page renders I get error saying You need to request Author for access #97

Closed sagnikm95 closed 5 years ago

sagnikm95 commented 5 years ago

Describe the bug I am trying to use aad token to embed the report, but when the page renders I get error saying You need to request Author for access, the user corresponding to the token has owner access on the record

image

akshay5995 commented 5 years ago

@sagnikm95 Have you tried the same config in Microsoft's demo site

akshay5995 commented 5 years ago

It's most likely that the user doesn't have access to the PowerBI resource. Re-verify that the user and password that you used to generate the AAD token has sufficient privileges to access the report you're trying to embedded.

sagnikm95 commented 5 years ago

Thanks for getting back. I tried embedding the same in the demo site , but ended up getting the same error. The user which I used to generate the token is the owner of the report. Randomly few time the report is getting rendered. But most times I am faced with the access issue. I gave the AAD App all read permissions for the PowerBI App, is there any specific xustomization I need to do there ? Also the AUD for the decrypted AAD token is the AAD client ID itself, should that matter ?

tratohecho3 commented 5 years ago

For me this library worked perfectly to render the reports

akshay5995 commented 5 years ago

@sagnikm95 I think as this is not concerned with the library implementation it cannot be considered a bug of the library. I would love to help you out please reach out to me by mail.

Please take a look this video on how AAD token/ Embed token can be generated.

@tratohecho3 Glad it helped you 👍

sagnikm95 commented 5 years ago

Thanks @akshay5995 , reached out to you regarding the same,