cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sathishP Frequent Visitor
Frequent Visitor

Problem in Access Token Generation: Tenant authorize not found.

I get this error while trying to get Access Token:
Line of code: var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential);

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

I am able to embed my dash board and report in sample application form github. But not in our product, which has form authentication enabled.

Please help me in this.

1 ACCEPTED SOLUTION

Accepted Solutions
sathishP Frequent Visitor
Frequent Visitor

Re: Problem in Access Token Generation: Tenant authorize not found.

Resolved by reverting the assembly "Microsoft.IdentityModel.Clients.ActiveDirectory" to Version=3.13.9.1126.

 

 

Using latest version of this assembly raised this issue. Version = 4.4.0.0

View solution in original post

3 REPLIES 3
sathishP Frequent Visitor
Frequent Visitor

Re: Problem in Access Token Generation: Tenant authorize not found.

Resolved by reverting the assembly "Microsoft.IdentityModel.Clients.ActiveDirectory" to Version=3.13.9.1126.

 

 

Using latest version of this assembly raised this issue. Version = 4.4.0.0

View solution in original post

mthierba Frequent Visitor
Frequent Visitor

Re: Problem in Access Token Generation: Tenant authorize not found.

Hi,

a future-proof resolution for this issue is to adjust the AAD Authority Url in your config. ADAL v4 performs a stricter authority validation than v3. Instead of https://login.windows.net/common/oauth2/authorize you should be using https://login.microsoftonline.com/common.

 

That is documented here: https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/wiki/Changes-adalnet-4.0#better-...

 

Apparently, the former url has been given uncorrectly given in many official examples previously, and v3 was quite forgiving about it.

 

See also: https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/1346#issuecomment-4323803...

 

No need to pin a prior ADAL version with that modification.

 

Hope that helps,

Mathias

Thanid Visitor
Visitor

Re: Problem in Access Token Generation: Tenant authorize not found.

Thank

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 137 members 1,671 guests
Please welcome our newest community members: