cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Re: Is it possible to use an API Bearer to load a report preauthenticated

Thank you again, but could you elaborate the workflow to get that working?

Highlighted
MVP

Re: Is it possible to use an API Bearer to load a report preauthenticated

Hi @CamStillHere ,

 

To summarise the steps for hte implicit grant flow with Power BI Embedded and the REST APIs: 

  1. Prompt the user with an Azure AD account to login with its username and password
  2. If successfull you have an id_token
  3. With that id_token you can authenticate to Azure AD together with an application id
  4. If successfull you have an access_token
  5. That access_token you can use to upload the report via the Power BI REST APIs
  6. Use the same access_token as part of the config (together with tokenType: models.TokenType.Aad) with the Power BI Embedded SDK, see https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-overview for more information.

If I understand correctly you have already implemented the first 5 steps and you only need to implement step 6.

 

-JP

 

View solution in original post

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!