-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Category
- Question
- Typo
- Bug
- Additional article idea
We have a webpart which is using MSGraphClient. Everything is working as expected, except if you don't close the sharepoint site including the webpart and the browser over night, the next day you will receive the error: AADSTS50058: A silent sign-in request was sent but no user is signed in
Even though it says "no user is signed in" it is possible to browse every sharepoint online site without hitting a login screen.
Errors thrown:
- AADSTS50058: A silent sign-in request was sent but no user is signed in
- Refused to display 'https://login.microsoftonline.com/common/oauth2/authorize?response_type=id_token&client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&redirect_uri=https%3A%2F%2Fwebshell.suite.office.com%2Fiframe%2FTokenFactoryIframe&state=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&client-request-id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&x-client-SKU=Js&x-client-Ver=1.0.15&nonce=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' in a frame because it set 'X-Frame-Options' to 'deny'.
Expected or Desired Behavior
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.
Observed Behavior
Microsoft Graph resources can't be accessed due to silent sign-in error
Steps to Reproduce
- Create a SPFx1.6 webpart solution
- Use MSGraphClient to access graph resources
- Login to SharePoint Online site where the webpart is added
- Leave the site open and untouched over the night
- Come back the next day and refresh the page -> AADSTS50058: A silent sign-in request was sent but no user is signed in
SPFx version 1.6.0
SharePoint Online Standard Release
Browsers:
- Chrome Version 68.0.3440.75 (Official Build) (64-bit)
- Internet Explorer 11