Not logged in - Login

BI Error: AADSTS90002: Tenant authorize not found

When attempting to embed a BI dashboard into a web page, receive the following error:

error_description":"AADSTS90002: Tenant authorize not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.

The following code is in place to authenticate credentials in Azure:

var credential = new UserPasswordCredential(Username, Password); // Authenticate using app settings credentials
var authenticationContext = new AuthenticationContext(AuthorityUrl);

// the error occurs on the execution of this line:
var authenticationResult = authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential).Result;

var tokenCredentials = new TokenCredentials(authenticationResult.AccessToken, "Bearer");



The fix:
One of the NuGet packages required is the "Microsoft.IdentityModel.Clients.ActiveDirectory" package. This is the Active Directory Authentication Library (ADAL). This error occurred when the latest version was installed on the project (v4.4.0).

Downgrading the version to v3.19.8 allowed the code to execute as desired.