iOS/Safari: AADSTS50058
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Users get the Error AADSTS50058: A silent sign-in request but none of the currently signed in user(s) match the requested login hint.

Expected or Desired Behavior
After a user clicks OK on the alert "To view the information on this page, you need to verify your identity" this error should not appear again after the user verified his identity and reloads the page.
Observed Behavior
The popup appears again after the user successfully logged and verified his identity after clicking OK on the alert leading to a login loop on iOS/Safari.
Steps to Reproduce
SharePoint Online SPFx WebPart fetching data from AadHttpClient, SPO search, lists, ms graph.
The issue occurs on our own production and test environment spo tenants and our customers using iOS/Safari and switching between different accounts on different tenants. To some users this happens a lot. Clearing cache and cookies seems to only temporarily fix the issue. Sadly we can not reproduce this behaviour consistently and could not reproduce this at all in incognito windows.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I can confirm this issue. We have a webpart which is using MSGraphClient. Everything is working as expected, except if you don't empty the safari cache explicitely on an iPhone or Mac, after a while - say 24 hours but maybe sooner - the user will be presented a popup that tells him/her To view the information on this page, you need to verify your identity. Click Here. So far - according to this issue https://github.com/SharePoint/sp-dev-docs/issues/2685 - this is by design. However, when the user clicks the button / link and after the user is redirected, unfortunately the popup re-appears. And more in general, the work-around also negatively impacts the performance (due to a number of redirects being added to the request). This error can also be reproduced on a Mac when browsing with Safari. In the developer console the following error is logged: 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).
Even though it says "no user is signed in" it is possible to browse every sharepoint online site without hitting a login screen.
As the webpart is embedded on a sharepoint site, there should be no error saying "no user signed in". The MSGraphClient should handle this error internally by initiating all steps necessary to log in the user again and possible use a refresh token.
@lahuey seems you requested people submit a new issue if this was still going on in your comment here https://github.com/SharePoint/sp-dev-docs/issues/2685#issuecomment-513048328 ...
Folks, just for investigation purposes, can you please check if disabling ITP in Safari would remove the issue? https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/Known-issue-on-Safari
@lucabandMSFT I have received indeed the same request from Microsoft Premier Support. I will try on Monday when I have the necessary devices to test again available. Having said that, is it really a solution to require your users to go into their settings and make changes?
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.
We are also seeing this issue on Mac and Windows 10.
Mobile devices as well.
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.
Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.
Yes Its working after disabling ITP. But it would be difficult for all users to communicate or alerting user to disable that settings... specifically for top leadership.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues