Forum Discussion
KEMKEM
2 years agoRegular Visitor
How to use the Power Bi Rest Api without the refreshtoken?
I have a powershell script which is using the Power Bi Rest Api. For the authentication they use some strange solution. They capture the refresh token from the browser and save it in a txt file. Than...
lbendlin
2 years agoSuper User
Ask for a bog standard auth token each time before your API call. You need to have an app registered with the required scope, client secret etc.
KEMKEM
2 years agoRegular Visitor
I dont understand what you mean. Please share some documentation or code snipped.
- lbendlin2 years agoSuper User
The code I posted will allow you to receive an auth token without any interaction, as often as needed (I call it before each REST API call). No need for a refresh token. Efficiency be damned.