angular - 错误 : AADSTS50058: A silent sign-in request was sent but no user is signed in - Angular ADAL authentication issue in mobile safari browser

标签 angular safari adal cross-site

我们有一个使用 Angular 7 开发的站点,它使用 Adal-Angular4 库进行 Azure Active Directoty 身份验证。在 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).

防止跨站脚本 Safari 浏览器的选项关闭,然后身份验证通过。我们还观察到,在其中一部三星 Galaxy S8+ 手机的 Chrome 浏览器中会出现此问题。知道这个问题的确切原因是什么以及修复它的方法是什么。

最佳答案

在隐身模式下通过 Chrome 浏览器访问我的 angular 应用程序时,我遇到了这个问题。默认情况下,它会在主页上通过切换来禁用第三方 cookie。我只是禁用了它,并没有再次遇到错误。
Disabling the option

关于angular - 错误 : AADSTS50058: A silent sign-in request was sent but no user is signed in - Angular ADAL authentication issue in mobile safari browser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61423774/

相关文章:

c# - 使用 ADAL v3 使用 ClientID 对 Dynamics 365 进行身份验证

Angular 2 客户端错误

angular - AWS S3 中 SPA 的子页面 404

javascript - iOS Safari 私有(private)浏览 localStorage 和 sessionStorage 支持吗?

jQuery withCredentials 在 Safari 中不起作用?

ios - 用户更改密码后,ADAL 的 iOS 缓存访问 token 会过期多长时间

html - Angular 5 将动态 html 文件添加到 DIV 中

css - 如何在屏幕上完全显示微调器或加载

javascript - Safari 10.0 上的悬停效果问题

c# - 微软图: how to get all groups reusing the token generated through ADAL