我在租户 A 中有用户 A,在租户 B 中有 Multi-Tenancy AD 应用程序 B。我正在尝试从用户 A 的 AD 应用程序上下文中获取 token
我使用用户 A 的凭据登录并收到错误
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.
我已将 ID 应用程序 B 配置为 Multi-Tenancy - a573ddda-b34a-4206-a73b-d67ff6e98aec。知道为什么这可能不起作用吗?
最佳答案
我遇到了由完全不同的因素引起的相同错误: 我使用 secret ID 和 secret 值而不是应用程序 ID 和 secret 值配置了 Oauth2 客户端。
我花了几个小时浏览了大量的配置页面才发现原因非常简单,而且来自 MS API 的响应毫无用处。
关于Azure 登录 Multi-Tenancy AD 应用失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62636543/