azure - “AADSTS50034 : To sign into this application the account must be added to the <GUID> directory

标签 azure azure-web-app-service azure-active-directory

获取用户租户列表的情况。当用户登录他所属的目录时,不会发生异常。否则,它会执行此操作,但该用户会作为 guest 分配到该目录。

Exception: {
    "error":"invalid_grant",
    "error_description":"AADSTS50034: To sign into this application the account must be added to the GUID directory.\r\nTrace ID: GUID\r\nCorrelation ID: GUID\r\nTimestamp: 2017-08-03 14:32:32Z",
    "error_codes":[50034],
    "timestamp":"2017-08-03 14:32:32Z",
    "trace_id":"GUID",
    "correlation_id":"GUID"
}

堆栈显示在 AcquireTokenSilentAsync 上。

最佳答案

如果您没有开发 Multi-Tenancy 应用,要从 Azure AD 获取 token ,用户登录应该在该租户中。

如果您正在开发 Multi-Tenancy 应用程序,我们应该在授权/ token 请求中将租户替换为 common(请参阅 this link )。

更新

enter image description here

关于azure - “AADSTS50034 : To sign into this application the account must be added to the <GUID> directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45487492/

相关文章:

azure - 将证书从 key 保管库上传到应用服务

postgresql - Azure 中 Docker 上的 Postgres

php - AADSTS1002016 : You are using TLS version 1. 0、1.1 和/或 3DES 密码已弃用,以改善 Azure AD 的安全状况

azure - 获取AADSTS50058 : A silent sign-in request was sent but no user is signed in issue for on-behalf of user token generation

azure - 在 docker 文件内发布时出现容器错误

azure - 如何在 Visual Studio 2015 中启用 Web 开发功能?

azure - 在 Azure 服务总线上使用 Rebus 2 进行审核

azure - 使用 Azure 磁盘的 Azure Kubernetes 服务中的持久存储问题

asp.net - Azure Web App(ASP.NET MVC)每十分钟变冷一次,加载时间为+ 10-20s

integration - 是否可以将 RSA Archer 与多个 Active Directory 集成?