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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.