I have user A in tenant A and a multi-tenant AD app B in tenant B. I am trying to get token from user A's context for the AD app
I logged in using user A's credentials and got error
AADSTS700016: Application with identifier 'a573ddda-b34a-4206-a73b-d67ff6e98aec' was not found in the directory 'domainA.onmicrosoft.com'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.
I have configured AD app B with id - a573ddda-b34a-4206-a73b-d67ff6e98aec to be multi-tenant. Any idea why this might not be working?
https://login.microsoftonline.com/tenant-a-id/v2.0
instead ofhttps://login.microsoftonline.com/common/v2.0
? This would force the user signing in to authenticate against tenant A instead of their home tenant. – juunas