Forum Discussion
How to get Power BI Access Token via Javascript?
Any updates on how to get a hold of the access token???
My understanding is that, unless it is provided as a specific Connector in Power Query (e.g. Facebook, SharePoint Online List maybe), Power BI doesn't currently support the full callback process for user-id/password authentication per oAuth2. Per http://angryanalyticsblog.azurewebsites.net/index.php/2016/05/16/api-strategies-with-power-bi/, "Power BI cannot read a response returned to a callback URL and if the API you are using requires that “authentication flow” then it can’t be used with Power BI (well, that is not entirely true, but to prevent this blog from being 50 pages long, we will say it can’t). For instance, the LinkedIn API requires this flow so it is not something we can connect to from Power BI easily."
It WILL work for an application-level token per that link showing access via public Twitter Search API.
To help get this service improved, consider voting for an (the best?) oAuth idea at https://ideas.powerbi.com/search?filter=ideas&query=oauth