错误代码AADSTS 51058 _本机移动应用程序_移动应用程序浏览器 [英] Error Code AADSTS 51058 _ native mobile app _ Mobile app browser

查看:92
本文介绍了错误代码AADSTS 51058 _本机移动应用程序_移动应用程序浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在执行调用流程以获取访问令牌&按照下面的链接刷新令牌.该流程是从移动应用程序Brower执行的.它是本机应用程序(ios& android).但是,我收到错误代码

AADSTS 51058.

AADSTS 51058. 

获取授权码

https://login.microsoftonline.com/35c6458c-1877-41d0-bd1e-c1432aa58511/oauth2/authorize?

https://login.microsoftonline.com/35c6458c-1877-41d0-bd1e-c1432aa58511/oauth2/authorize?

作为响应,我从上方的API请求中获取代码",并将其与客户端ID和资源一起传递到URL下方以获取访问令牌.在这里,我得到了一个以上的错误代码(对外部安全性的挑战未得到满足).

From above API request in response I am getting 'Code' which I pass in below URL along with Client ID and Resource to get access token. Here I an getting above error code (external security challenged not satisfied).

https://login.microsoftonline.com/35c6458c-1877-41d0-bd1e-c1432aa58511/oauth2/token

https://login.microsoftonline.com/35c6458c-1877-41d0-bd1e-c1432aa58511/oauth2/token

我看不到足够的文献来弄清楚错误代码AADSTS 51058的详细信息.有人遇到过相同的问题,并且知道如何解决此问题吗?

I don't see enough literature to fig out  details on this error code AADSTS 51058. Has anyone encountered same and knows how to address this issue?

P.S:如果通过Web浏览器执行此流程,则效果很好.

P.S: This flow works perfectly fine if executed via Web browser.

推荐答案

我认为您的意思是AADSTS 50158:外部安全性挑战未得到满足.当特定于租户的条件访问策略阻止访问时,通常会发生此错误.您可以在对/authorize端点的调用中指定resource参数.这个 应该提示用户正确的体验来满足此控制要求. 

I think you mean AADSTS 50158: External security challenge was not satisfied. This error usually occurs when a tenant-specific conditional access policy is blocking access. You could specify the resource parameter in the call to /authorize endpoint. This should prompt the user with the right experience to satisfy this control. 

https://docs.microsoft.com/zh-cn/azure/active-directory/reports-monitoring/reference-sign-ins-error-codes

https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/reference-sign-ins-error-codes

CC:@CarlosLeviatan

CC: @CarlosLeviatan


这篇关于错误代码AADSTS 51058 _本机移动应用程序_移动应用程序浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆