sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFX ms graph authorization Error in SharePoint Mobile App

Open harshdamaniahd opened this issue 5 years ago • 12 comments

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

  • [ ] 💥 Internet Explorer
  • [X] 💥 Microsoft Edge
  • [X] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [X] mobile (iOS/iPadOS)
  • [X] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

When using SPFX with microsft graph msGraphClientFactory , has stopped working in sharepoint mobile app

Steps to reproduce

1.Create a spfx webpart part using ms graph and add it to sharepoint page. and open it in an app 2. 3.

Expected behavior

the webpart should also load in the app

harshdamaniahd avatar Oct 21 '21 13:10 harshdamaniahd

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

ghost avatar Oct 21 '21 13:10 ghost

@harshdamaniahd , thanks for the feedback. Just to be sure we properly capture the scenario: if you log in to SharePoint on a browser first and then try to open the page in SPMobile with the same user, does the error still persist?

lucabandMSFT avatar Oct 25 '21 20:10 lucabandMSFT

@lucabandMSFT I have the same issue only with the AadHttpClient using SPFx v1.11.0 on mobile Teams App. It used to work, but stopped working I think two weeks ago or something. I don't know how to get any error information from the mobile App. So hard to see what is happening. I just logged into SharePoint from iOS Safari with the same account, restarted Teams app, but no luck. It all works from desktop and web.

rfjschouten avatar Oct 26 '21 07:10 rfjschouten

@rfjschouten, thanks. I know Teams mobile had some regressions and were pushing a fix to resolve that back. I think the fix should be deployed 100% in production by end of October.

lucabandMSFT avatar Oct 26 '21 16:10 lucabandMSFT

@lucabandMSFT I will monitor if things start to work again. Will this require a new version of the mobile Teams App or is this something in the backend? We are in the process of delivering an SPFx personal Teams App for students. Good to know if they need the newest client, so we can communicate.

rfjschouten avatar Oct 26 '21 17:10 rfjschouten

yes: my understanding is that it will require an update on the Mobile bits. Out of curiosity: do you know what version are you currently running?

lucabandMSFT avatar Oct 26 '21 17:10 lucabandMSFT

B0EDFE57-9B5D-46ED-9518-7A501F6B31C6

rfjschouten avatar Oct 26 '21 19:10 rfjschouten

I checked for updates, but no new version available.

rfjschouten avatar Oct 26 '21 19:10 rfjschouten

@rfjschouten, just did couple of checks on our side.

Can you please navigate back to the API Access page in the SharePoint tenant Admin with an account that has AAD Global Admin rights and then navigate back on the Mobile to see if the error still occurs?

Thanks!

lucabandMSFT avatar Oct 27 '21 22:10 lucabandMSFT

@lucabandMSFT I double checked if I was a Global Admin at the client instead of maybe only a SharePoint Admin. I am a Global Admin, check one. Then I navigated to API Access page (I already did this earlier this week and last week) and now the external API can be accessed from Teams Mobile App! I double checked also desktop and Web clients and they still work as before. Thank you Luca, client will be happy!

For others, do you always have to navigate to API Access page, or is this procedure done automatically by Microsoft?

rfjschouten avatar Oct 28 '21 09:10 rfjschouten

@rfjschouten, glad to hear that. I"m going to close this issue now.

As per your question: navigating to the API access page (beside for approving new API requests), should be an operation that is rarely required. And, for security reasons, only the Global Admin for the tenant can do that.

lucabandMSFT avatar Oct 28 '21 16:10 lucabandMSFT

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

ghost avatar Nov 04 '21 18:11 ghost