我们有一个使用 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/