Ok, thanks a lot! I will bug my admin to enable it
Sergei Sergeev
@s-KaiNet
if it's windows auth, a browser should ask for creds using above window
eralardz
@eralardz
Oh no, it doesn't use that window. It uses a SharePoint popup.
Sergei Sergeev
@s-KaiNet
could you send a screenshot (delete all private data)?
eralardz
@eralardz
ok, just a moment
etc...
Sergei Sergeev
@s-KaiNet
it definitely doesn't look like windows auth
eralardz
@eralardz
after the password it asks for the 2fa sms code, and then I would expect the Electron window to close. But it stays open and it just loads the website.
Sergei Sergeev
@s-KaiNet
you can try asking admins to enable app password, meanwhile I will test on-demand with the latest electron and 2fa, but I will be able to do that only by the end of the week
eralardz
@eralardz
Thanks a lot! I will try to downgrade versions first. Do I create an issue on github for this?
the last suggestion - try to install electron 3.x globally, then use on-demand without "electron" option
_
eralardz
@eralardz
Ok. I will check. I am using sp-rest-proxy btw, but I guess that just uses node-sp-auth under the hood.
Sergei Sergeev
@s-KaiNet
yep, exactly
eralardz
@eralardz
How do i use on-demand without electron? Do i specify it manually?
Sergei Sergeev
@s-KaiNet
ah, I forgot you use sp-rest-proxy, then you can't control these settings
then just install electron 3.x globally and re-initilize sp-rest-proxy with on-demand option
eralardz
@eralardz
I installed it globally, and the warning "Integrated windows authentication isn't supported" is gone, but it still just loads the website
Sergei Sergeev
@s-KaiNet
ok, so it looks like it's an issue with electron and 2fa, I will check it
eralardz
@eralardz
Thanks a lot!!
Just one more question, I would try to make a really simple react webapp that reads and writes to SharePoint lists from node. I could't find any good examples tho, would you happen to know some?
Sergei Sergeev
@s-KaiNet
if you don't need user context, then you can use add-in only authntication from nodejs and update SharePoint
but, to be honest, when it comes to development against SharePoint and \ or Office 365, there are a lot more tools and libraries for .net rather then node...
eralardz
@eralardz
Yeah, I'm only starting out. There is so much...
I've tried SPFX but I've found it to be pretty limiting.
If you compare it to a SPA
I'm actually creating an SPA, backed by SharePoint