错误:AADSTS50058:已发送静默登录请求,但没有用户登录 - 移动 safari 浏览器中的 Angular ADAL 身份验证问题

2024-01-18

我们有一个使用 Angular 7 开发的网站,它使用 Adal-Angular4 库进行 Azure Active Directory 身份验证。当在 iPhone 上的 safari 中浏览该网站时,会遇到以下错误。

Error: AADSTS50058: A silent sign-in request was sent but no user is signed in. The cookies used to represent the user's session were not sent in the request to Azure AD. This can happen if the user is using Internet Explorer or Edge, and the web app sending the silent sign-in request is in different IE security zone than the Azure AD endpoint (login.microsoftonline.com).

When 防止跨站脚本Safari 浏览器的选项关闭,然后身份验证就可以正常通过。我们还观察到,在其中一款三星 Galaxy S8+ 手机上的 Chrome 浏览器中也会出现此问题。知道这个问题到底是什么原因以及补救方法是什么。


我在隐身模式下通过 Chrome 浏览器访问我的角度应用程序时遇到了这个问题。默认情况下,它通过主页上的开关禁用第三方 cookie。我刚刚禁用了它,并且没有再次遇到该错误。

禁用该选项 https://i.stack.imgur.com/1paNS.png

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

错误:AADSTS50058:已发送静默登录请求,但没有用户登录 - 移动 safari 浏览器中的 Angular ADAL 身份验证问题 的相关文章

随机推荐