AADSTS50034:要登录此应用程序,必须将帐户添加到目录中 [英] AADSTS50034: To sign into this application the account must be added to the directory
本文介绍了AADSTS50034:要登录此应用程序,必须将帐户添加到目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下URL来获取带有用户信息的Auth令牌
I am using following URL to get the Auth Token with user information
https://login.microsoftonline .com/:tenant_id/oauth2/token
tenant_id:TENANT-GUID
grant_type:密码
client_id:CLIENT-GUID
client_secret:客户机密
资源:RESOURCE-ID
用户名:username
密码:密码
tenant_id:TENANT-GUID
grant_type:password
client_id:CLIENT-GUID
client_secret:CLIENT-SECRET
resource:RESOURCE-ID
username:username
password:password
但是出现以下错误:
AADSTS50034:要登录此应用程序,必须将帐户添加到{TENANT-GUID}目录
AADSTS50034: To sign into this application the account must be added to the {TENANT-GUID} directory
请咨询.
推荐答案
您已将应用程序注册到Azure AD中正确的租户?如果是, 可以请检查您是否在用户名中传递了完整的电子邮件地址 获取身份验证令牌?
Have you registered your application to correct tenant in Azure AD ? If yes, can you please check if you are passing the full email address in username to get the auth token ?
这篇关于AADSTS50034:要登录此应用程序,必须将帐户添加到目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文