Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

PB Embed: MSAL Access Token returning 403 error in custom JS app.

I followed all the instruction from here. I'm having troubles in the step 5, Embedding the content. I have the following function to retrieve an acces token from a front-end app.   async functio...
  • Anonymous's avatar
    Anonymous
    5 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.