OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
427 stars 195 forks source link

OneDrive file picker SKD #2356

Closed LeoM93 closed 3 months ago

LeoM93 commented 3 months ago

I have the following Issue: I'm trying to open the oneDrive file picker (https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/js-v72/?view=odsp-graph-online) but when I try to authenticate, I receive the following error and the pop up login window is white:

Error: SDK initialization timed out. at gt (app.ts:55:7) at e.initialize (app.ts:767:12) at auth-end.html:25:26

In more details, I used Teams toolkit to create an Teams tab app. when provisioning, it automatically create an Azure Active Directory registering the app, generating a new client secret and adding a new web platform with an redirect url: https://nice-wave-0a8f4d710.5.azurestaticapps.net/auth-end.html

This is the code in the auth-end.html:

Screenshot 2024-06-12 at 15 19 45

Can you help me debugging the problem?

Thank you in advance for the help

KangxuanYe commented 3 months ago

Hello @LeoM93, thanks for reporting the issue. To better assist you, I would like to double confirm some of basic info with you first. Please feel correct me for points I listed below

Based on your description and screenshot provided,

And then I have following questions:

Meanwhile, I will try to follow your steps to write a sample app to see if I can reproduce this.

KangxuanYe commented 3 months ago

Hi @LeoM93, I also followed your instruction and constructed a demo app on cloud by using Teams Toolkit. I clicked the provision under Lifecycle and then deployed the app. I could see my app is registered in AAD but I didn't get a new client secret and redirect url as you did. Could you please share more information to me in case I miss something? Also we would appreciate if you can let us know more detail about what to do to add an authentication for the app. Thank you so much.

KangxuanYe commented 3 months ago

Reopen this issue for waiting response from author to answer in another week. This will be closed if nothing is heard at the end of next Monday, July 1st, 2024.

microsoft-github-policy-service[bot] commented 3 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.