-
Notifications
You must be signed in to change notification settings - Fork 1k
SPFX getClient via msGraphClientFactory is failing with Application requested a user session which does not exist exception #10269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @mdissel, |
@mdissel,
This will help us reproduce it on our end and move forward with debugging or escalation. Appreciate your help! |
Thanks for following this up! As shared in my initial post, the only thing we're trying is to get a msgraph instance from the SPFX framework via executing this code: I'm currently focusing on Outlook WebAccess to make it easier to remove all cookies/session/caching, etc. but nothing helps. It keeps raising the redirect exception. Do you need more debug info? |
@mdissel, |
@Ashlesha-MSFT Any update? |
@mdissel, Thank you for your patience and understanding. |
@Ashlesha-MSFT Is there a workaround? can we force a logout/login? |
We have a number of larger 1000+ user sites reporting a similar problem. Can we inform them about a possible resolution planning? |
Uh oh!
There was an error while loading. Please reload this page.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
In our SPFX webpart we are using this code to get a MS Graph client. For a small number of users (not all) this results in an exception 'interaction required' when the webpart is loaded inside Outlook New and/or Outlook webaccess. The problem does not occur when the same user is loading the webpart in a browser when the webpart is loaded in a sharepoint page.
The problem is occuring on multiple different tenants, but only with a few users....
interaction_required: AADSTS160021: Application requested a user session which does not exist. Trace ID: 121500f7-c641-4070-b9f3-746f72221f00 Correlation ID: 7cd2050f-882d-4de2-a2da-678bfbec6d67
The webpart is using the following URL in Outlook (Web Access) in the iframe:
https://XXXXX.sharepoint.com/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId=XXXXXXX3%26forceLocale=en-US%26theme=default
The following exception is logged:
Expected behavior
this.context.msGraphClientFactory.getClient('3') should return client with a valid token.
The text was updated successfully, but these errors were encountered: