Skip to main content

Power BI

New

Power BI Authentication using REST API without GUI using Java (Refresh Token)

Vote (18) Share
Hiren Sangani's profile image

Hiren Sangani on 22 Aug 2016 17:04:04

Hello,

Currently I am getting Power BI Report from Power BI services with access token and embedding this report into IFrame using Azure AIDL Authentication.

Using this Java Library I am getting an JWT access token and fetching into my Power Bi report.

Below are the problems with this approach:

1) Access token has a short validity of 60 mins. and after that I fetch new access token using refresh token.

2) But the refresh token itself has a validity of 14 days and after that I need to manually log in and update the refresh token manually.

I want to avoid manual log in and wondering if there is any way to make this automatic.

Any suggestions would be appreciated.