Forum Discussion
Problem in Access Token Generation: Tenant authorize not found.
- 7 years ago
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
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
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-authority-validation
Apparently, the former url has been given uncorrectly given in many official examples previously, and v3 was quite forgiving about it.
No need to pin a prior ADAL version with that modification.
Hope that helps,
Mathias
- Thanid7 years agoRegular Visitor
Thank