-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using ondemand credentials #31
Comments
Hi, is that online or on-premise? |
It is online. The reason I started using on-demand credentials is that they use MFA. I tried reinstalling Electron but it didn't make any difference |
ok, try a few options:
For now I'm not sure what is the cause for this behavior, probably some kind of cookie expiration issue. |
The first one I'm unfortunately not able to change due to policies on the customer's O365. I tried some more and now I got another UnauthorizedAccessException instead. It might have to do with my permissions on the site. Is full control not enough to run spsave? It works on another site collection where I have full control. |
When running in ondemand mode, it prints actual file path with credentials data in console. Try to delete those file and start from scratch. |
What if you try to set below creds config: {
ondemand: true,
force: true,
persist: true
} |
It made no difference. I tried uploading to the new site from another project with the same node packages and gulp files, and it worked from there. I'm guessing something broke when I installed the packages(?) |
I don't think so... however you can try to install all packages from scratch. Also check that your user has permissions, because the error message clearly says that you don't have them.
Does it mean you can't create a new app password? |
I am signed on to the site in my web browser, so permissions shouldn't be a problem. Tried reinstalling the packages, but no luck. Yes, I'm not able to create an app password. I don't have access to the "Additional security verification" link under Security & Privacy. I will try to create a new project from scratch tomorrow and hopefully it works. Thank you for your help today. I'll post my progress tomorrow 👍 /Joachim |
Hi again, I started a new project and installed gulp and gulp-spsave and it works fine. No idea what's wrong with the old project, but I'm moving all the content to the new one. |
Hi, thank you, glad to know the issue finally resolved! |
Hi,
I'm trying to upload files to SharePoint using ondemand credentials:
However, when I run the task I get the following error:
It worked a couple of days ago on a site collection on the same tenant. Electron is started but it closes quickly as if it is using cached credentials.
Any clues?
Thanks,
Joachim
The text was updated successfully, but these errors were encountered: