You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
An AuthenticationResult result is returned.
Actual behavior
Exception is thrown.
Microsoft.Identity.Client.MsalServiceException: "AADSTS90002: Tenant 'v2.0' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.\r\nTrace ID: 024c3425-f6b7-4f00-a95b-8b0a14325400\r\nCorrelation ID: d2d97559-d4ab-4517-9a3f-bec02f562a50\r\nTimestamp: 2019-07-15 07:33:33Z"
Possible Solution
In this line, string.Format(CultureInfo.InvariantCulture, "{0}/{1}/", cloudInstanceUri, tenant) produces https://login.microsoftonline.com//<tenantId>, and so CanonicalAuthority of the AuthorityInfo object becomes https://login.microsoftonline.com//.
Updating the line to string.Format(CultureInfo.InvariantCulture, "{0}{1}/", cloudInstanceUri, tenant) should fix the issue. However I am not sure about other possible urls that can be passed into the method so not sure whether it will break other user cases.
The text was updated successfully, but these errors were encountered:
Which Version of MSAL are you using ?
MSAL 4.1.0
Platform
net45
What authentication flow has the issue?
Is this a new or existing app?
This is a new app
Repro
Expected behavior
An AuthenticationResult result is returned.
Actual behavior
Exception is thrown.
Microsoft.Identity.Client.MsalServiceException: "AADSTS90002: Tenant 'v2.0' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.\r\nTrace ID: 024c3425-f6b7-4f00-a95b-8b0a14325400\r\nCorrelation ID: d2d97559-d4ab-4517-9a3f-bec02f562a50\r\nTimestamp: 2019-07-15 07:33:33Z"
Possible Solution
In this line,
string.Format(CultureInfo.InvariantCulture, "{0}/{1}/", cloudInstanceUri, tenant)
produceshttps://login.microsoftonline.com//<tenantId>
, and soCanonicalAuthority
of theAuthorityInfo
object becomeshttps://login.microsoftonline.com//
.Updating the line to
string.Format(CultureInfo.InvariantCulture, "{0}{1}/", cloudInstanceUri, tenant)
should fix the issue. However I am not sure about other possible urls that can be passed into the method so not sure whether it will break other user cases.The text was updated successfully, but these errors were encountered: