Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Andrew Koltyakov
    @koltyakov
    An Express application usually deals with its own auth, backend methods authenticate using a service account and expose only a part of SharePoint API.
    But it really depends. Too vague to answer anything specific.
    mert certel
    @itoldyou_gitlab
    Okey, i will try this. i will create a backend web API. And i have a login screen in a frontend. When user enter a username and password, try to login sp2013.
    Thats what i need sır.
    Sergei Sergeev
    @s-KaiNet
    @itoldyou_gitlab since it's ntlm, you can try adding windows auth to your express app, but afaik nodejs and windows auth are not the best friends...
    mert certel
    @itoldyou_gitlab
    @s-KaiNet Okey thanks. İ will try to add ntlm handshake.
    mert certel
    @itoldyou_gitlab
    By the way should i install node-sp-auth-config ?
    Andrew Koltyakov
    @koltyakov
    node-sp-auth-config is included as a dependency in node-sp-auth, so not necessarily should be explicitly installed
    mert certel
    @itoldyou_gitlab
    @koltyakov i am still getting error with 401 code. Can you help me ? https://stackoverflow.com/questions/58927570/sharepoint-2013-authentication-node-js
    is there any config central admin ?
    Hanad Kubat
    @hanadkubat
    Why is sppp not loading images from local dev environment but instead it loads images from sharepoint directly before they are even published?
    user2342895798
    @user2342895798
    I'm trying to create a text file containing a string using sp-request. The file is being created but the content is prefixed with a " and all quote marks within the string are escaped with a . Any advice? Here is my code: spr.post('${SCURL}/_api/web/GetFolderByServerRelativeUrl('${FolderServerRelativeUrl}')/Files/add(url='${FileName}',overwrite=true)',{ headers: { 'X-RequestDigest': digest, 'content-length':new Buffer(content).byteLength }, body:content })
    Andrew Koltyakov
    @koltyakov
    Encoding equal to null should be established. Please take a look how spsave uploads documents.
    Hanad Kubat
    @hanadkubat
    Hello, How does the process of adding multiple list items work in sppp with sharepoint 2013? I get a batch error when adding multiple items using the official documentation
    Andrew Koltyakov
    @koltyakov
    SPPP is not related to the API. It's a project generator/starter and a set of project automation tasks.
    Regarding the API question, batch API was not supported in SP 2013. The way to go is Promise.all instead.
    eralardz
    @eralardz
    afbeelding.png
    Hello everyone. I'm trying the following example: https://www.linkedin.com/pulse/getting-started-react-local-development-sharepoint-andrew-koltyakov/. It works fine with user credentials (SAML/ADFS). However, I'd like to use OnDemand authentication because we work in a multi-user environment with 2FA. When I try it out, Electron opens up fine, and I can log in with 2FA, but it just loads the SharePoint page. When I close the popup window I am not authenticated. Can you guys help me?
    afbeelding.png
    When I close the Electron window I get this error ^
    Sergei Sergeev
    @s-KaiNet
    Hi, could you tell which version of electron do you use?
    eralardz
    @eralardz
    Hello Sergei, thanks for your time. I used the last version of electron through npm: 7.1.3
    Sergei Sergeev
    @s-KaiNet
    just a side note: for sharepoint online with 2FA you can generate an app password and use it instead of a real one
    how add a new app passwod: https://support.office.com/en-us/article/create-an-app-password-for-office-365-3e7c860f-bda4-4441-a618-b53953ee1183 (To create another app password section)
    for electron... I haven't tested with the latest electron, sometimes they introduce breaking changes.. could you try installing electron 3.x locally, then speicfy electron explicitly via on-demand options - https://github.com/s-KaiNet/node-sp-auth/wiki/On-demand-authentication
    eralardz
    @eralardz
    App passwords are disabled on my tenant :-(
    Ok, I will try 3.x!
    eralardz
    @eralardz
    afbeelding.png
    Looks like it's not supported by 3.x.x
    I'll try some other versions
    Sergei Sergeev
    @s-KaiNet
    do you use windows auth?
    eralardz
    @eralardz
    I think so (I'm an absolute beginner)
    Sergei Sergeev
    @s-KaiNet
    in that case on-demand will not work
    eralardz
    @eralardz
    Oh ok, so I should use app passwords?
    Sergei Sergeev
    @s-KaiNet
    looks like it's the only way
    eralardz
    @eralardz
    Ok, thanks a lot! I will bug my admin to enable it
    Sergei Sergeev
    @s-KaiNet
    image.png
    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
    afbeelding.png
    afbeelding.png
    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?
    Sergei Sergeev
    @s-KaiNet
    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
    afbeelding.png