Skip to content

MSGraphClient Error AADSTS50058 #2685

@schurlinga

Description

@schurlinga

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:

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

  1. Create a SPFx1.6 webpart solution
  2. Use MSGraphClient to access graph resources
  3. Login to SharePoint Online site where the webpart is added
  4. Leave the site open and untouched over the night
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:authCategory: Authentication (Azure AD / etc)area:spfxCategory: SharePoint Framework (not extensions related)status:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:bug-confirmedConfirmed bug, not working as designed / expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions