Open rgcircum opened 10 months ago
I have no answer, Issue reposted on sp-dev-docs repos : https://github.com/SharePoint/sp-dev-docs/issues/9503
I am trying something similar, but I only get blank white pages, no error's in the console or blocked network requests. I then downloaded your sample (@rgcircum) but still see only blank pages - is this an indication, that I have the permissions set up incorrect? I tried it in multiple ways (with own app, without, ...) but I have never seen anything but a blank screen.
If you valid Graph authorization, it's works, but with bug's have that I brought up.
Correct authorization (working for me) :
{
"resource": "Microsoft Graph",
"scope": "Files.ReadWrite.All"
},
{
"resource": "Microsoft Graph",
"scope": "Sites.ReadWrite.All"
},
{
"resource": "Microsoft Graph",
"scope": "AllSites.Write"
},
{
"resource": "Microsoft Graph",
"scope": "MyFiles.Write"
},
{
"resource": "Windows Azure Active Directory",
"scope": "User.Read"
},
@rgcircum thanks for your correct authorization. Today I got it working as well! I do not know why it did not work last week - i have not changed anything on the privileges side. Thanks for your help!! But I agree with your comment, some permissions are very large and we will not get them from many clients too.
@JCrew0 you have (enventualy good) news for this ?
Hi, I try to use File picker V8 with SPFX, it's working but permissions as strange behavior.
I have created a sample : https://github.com/rgcircum/spfx-sp-filepicker-sample
I have based the SPFx sample with the sample by @patrick-rodgers (thanks)
The idea is to be able to use the filePicker without declaring an AAD application
i'm get Token by AadTokenProviderFactory
If i'm use the permissions :
This not work, i have this error :
If i add the permission :
The WebPart work!!! but only in SharePoint, on Teams tab, I have always AADSTS500011 error.
For Teams tab, i have tested this permissions :
But, i have the same error.
Another problems, the documentation explains that i can use *.read permissions, but that doesn't work. I thought it could work without the upload functionality, but not. it's a problem, the write permissions is to large (ex : AllSites.Write), lot of client do not accept this permissions for security purpose.