SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.23k stars 992 forks source link

MS Graph call fails from adaptive card extension when paired with Assigned Task card on initial load #7604

Closed cwparsons closed 1 year ago

cwparsons commented 2 years ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

macOS

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

When using the Viva Connections dashboard with the Assigned Tasks and a custom adaptive card extension that uses the MS Graph client, if the assigned task Graph call occurs first, the custom adaptive card extension's graph call will fail (403). This only occurs on first page load. On subsequent page loads, this works correctly.

Steps to reproduce

  1. Create, or download, an adaptive card extension that makes a Graph call. In this example, we'll use PrimaryTextCard-Graph-UnreadEmails.
  2. Package and install the sppkg.
  3. In the Viva Connections dashboard page, add the Assigned Tasks card and then the Unread Mails card (or a custom card). Republish the page.
  4. To simulate a fresh load, open the browser development tools and go to Application > Storage > Clear all data. Then refresh the dashboard page.
  5. Look at the Unread Mails (or custom card) and notice that it does not load.
Screen Shot 2021-12-17 at 10 41 58 AM

Expected behavior

The Graph call should be called correctly and the adaptive card extension should fully load.

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

patmill commented 2 years ago

Thanks @cwparsons - looking into it.

AJIXuMuK commented 1 year ago

@cwparsons - sorry for really long silence here. In the last year we made a lot of improvements related to the authentication in ACEs. Could you please check if the issue is still present?

Thanks!

ghost commented 1 year ago

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 the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

ghost commented 1 year ago

Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author