Forum Discussion
PB Embed: MSAL Access Token returning 403 error in custom JS app.
- Anonymous5 years ago
Hi Anonymous
403 error should be caused by authention forbbiden with your access token.
What kind of embed do you want to use, app owns data or user owns data?
To use Power BI Sample in github is a good way to test whether you have configured your embed correctly.
If you don't want to use sample code in github, make sure all steps is correct.
And you need to get access token from this link. "https://analysis.windows.net/powerbi/api"
You can have a test on getting access token or generate embed token by postman.
Enter the same link and body in postman.
For reference: Solved: Power BI REST API using postman - generate embed t... - Microsoft Power BI Community
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
403 error should be caused by authention forbbiden with your access token.
What kind of embed do you want to use, app owns data or user owns data?
To use Power BI Sample in github is a good way to test whether you have configured your embed correctly.
If you don't want to use sample code in github, make sure all steps is correct.
And you need to get access token from this link. "https://analysis.windows.net/powerbi/api"
You can have a test on getting access token or generate embed token by postman.
Enter the same link and body in postman.
For reference: Solved: Power BI REST API using postman - generate embed t... - Microsoft Power BI Community
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.