Reference: Power BI Sample Solution
I have moved the necessary code from the sample solution to my solution and its giving me the following error when authenticating:
AADSTS90002: Tenant authorize not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.
I am authenticating with these 2 lines:
var authenticationContext = new AuthenticationContext(AuthorityUrl);
var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential);
The error is occurring on the last line. Below are values in my web.config:
<add key="authorityUrl" value="https://login.windows.net/common/oauth2/authorize/" />
<add key="resourceUrl" value="https://analysis.windows.net/powerbi/api" />
Again, this works 100% in the sample app but not when I move to my app. Any ideas why ?
Thanks in advance for any help.