I'm trying to authenticate with Azure AD to access the Power BI APIs, but having some trouble.
I'm using adal-node to write a console app that uses the server to server via client credentials example outlined here.
Unfortunately I can't seem to get access.
If I use https://login.windows.net/common/oauth2/authorize as the authority URI (as per the powerbi doc), I get a 404 which seems odd. If I use the authority URI as per the example for adal-node, I appear to get a token. On using that token to access api.powerbi.com though, I get a 403 error.
If anyone is able to shed some light on this, that would be great.