OneDrive and SharePoint File Picker v8 for multi tenant
Rodin Aleksandr
0
Reputation points
We are integrating SharePoint file picker v8 using the procedures outlined in the instructions here.
We are going to allow all microsoft accounts, personal accounts and M365 accounts as well. I have setup everything and followed the instructions to setup on our React app.
The issues we are facing:
- With the multi tenant setup on the Azure application setup, when user logs in with the personal account, it says that personal account is not allowed. Multi tenant setup works fine for the v7.2 filepicker and regular authentication workflow, but it doesn't work on the v8
- We need to get the
baseUrl
(based on the instructions) to get picker configuration and render on theiframe
. We could use theGet Root Site
GraphQL Api. I could get thewebURL
for each user authenticated with access token, but this API doesn't work with personal account. I would like to know how to setupbaseUrl
for personal accounts. - Our app would have authentication mechanism already with the Microsoft oauth2, which means we have access token from users. When user opens the filepicker, is it required to user authenticate and consent the permissions again?
- I have tried with v7.2 and it works fine, but it doesn't support iframe mode and it asks consent everytime even with the access token granted permission. I saw the github issue that it's now suppored by the v7.2 onedrive picker so going to move with v8.
Regards,
Sign in to answer