node-sp-auth | Unattended SharePoint http authentication with nodejs | Authentication library

 by   s-KaiNet TypeScript Version: 3.0.8 License: MIT

kandi X-RAY | node-sp-auth Summary

kandi X-RAY | node-sp-auth Summary

node-sp-auth is a TypeScript library typically used in Security, Authentication, Nodejs, Express.js applications. node-sp-auth has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Unattended SharePoint http authentication with nodejs
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              node-sp-auth has a low active ecosystem.
              It has 110 star(s) with 34 fork(s). There are 9 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 16 open issues and 67 have been closed. On average issues are closed in 9 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of node-sp-auth is 3.0.8

            kandi-Quality Quality

              node-sp-auth has no bugs reported.

            kandi-Security Security

              node-sp-auth has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              node-sp-auth is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              node-sp-auth releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-sp-auth
            Get all kandi verified functions for this library.

            node-sp-auth Key Features

            No Key Features are available at this moment for node-sp-auth.

            node-sp-auth Examples and Code Snippets

            No Code Snippets are available at this moment for node-sp-auth.

            Community Discussions

            QUESTION

            why node-sp-auth on demand doesn't show browser window?
            Asked 2020-May-13 at 15:37

            I'm trying to setup a brand new angular 9 application local development environment for a SPA SharePoint Online application.

            As part of the process I need to setup the local proxy server sp-rest-proxy. I configured it to use on demand credentials. This is the config/private.json content:

            ...

            ANSWER

            Answered 2020-May-10 at 17:13

            On-Demand auth requires Electron being installed npm i -g electron@6.

            Electron is optional in node-sp-auth, as it's huge it was an architectural decision making it optional and for manual install only for that rare cases when On-Demand is needed.

            Source https://stackoverflow.com/questions/61676137

            QUESTION

            Access to Sharepoint 2019 OnProm Web Services using NodeJS app
            Asked 2020-Apr-10 at 13:01

            In my company I/T has just set up a new Sharepoint 2019 OnPromise, that is hybrid, using Azure AD for authentication.

            I'm a site collection admin for my Sharepoint website. Let's say the URL to Sharepoint is https://aymeric.sp.my-company.com

            When I access this URL I'm automatically redirected to https://login.microsoftonline.com/TENANT-ID/wsfed?wa=wsignin1.0&wtrealm=urn%3aSharepoint%3afederation&wctx=https%3a%2f%2faymeric.sp.my-company.com%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F&wreply=https%3a%2f%2faymeric.sp.my-company.com%2f_trust%2fdefault.aspx&sso_nonce=AQABAAAAAABeAFzDwllzTYGDLh_qYbH87qVvvwM4pLiqYXloFo6Il7_-ry9WsQiAA&client-request-id=8dacdcfb-c68f-4ec2-a3e7-7760cecf3699&mscrid=8dacdcfb-c86f-4ec2-a3e7-7760cecf3699 – I'm automatically identified and redirected back to Sharepoint with the correct profile.

            One of my I/T contact gave me the below information:

            Now I'm trying to access to Sharepoint Web Services (like https://aymeric.sp.my-company.com/_vti_bin/UserProfileService.asmx) using JavaScript and a Node app (node index.js). I'm using this technique with a Sharepoint 2013 OnProm and I have no issue: I just pass my credentials using https://github.com/s-KaiNet/node-sp-auth and it just works.

            If I try to access the SP 2019 Web Services in the browser, it just works too.

            But using a Node app with this Sharepoint Hybrid based on Azure AD I cannot find how to pass credentials… What to send? How to authenticate? Do I need to use an Azure AD App to connect to my Sharepoint OnProm? If yes, how to configure? Should I just send an "Authentication" header with a "Bearer" and an access token: if yes, how to get this access token?

            Whatever I try (and I tried dozen and dozen of things) I always end with (in best cases) an error 403 "Access denied. You do not have permission to perform this action or access this resource.".

            I tried different authentications, I also tried adal-node with an Azure AD App created from https://portal.azure.com/, but it's confusing. After two days of search and tries, I feel like I need help.

            Thanks

            ...

            ANSWER

            Answered 2020-Apr-10 at 13:01

            Finally, because I'm not a farm/server admin, my last option was to retrieve the FedAuth cookie that can be used in all requests to be recognized by Sharepoint.

            I've "just" mimicked the browser's behavior by creating a NodeJs script that reproduces all the required steps.

            10 calls including redirection, post form and Kerberos authentication are required to finally get the precious FedAuth cookie.

            Source https://stackoverflow.com/questions/60854333

            QUESTION

            Sharepoint 2013 authentication node js
            Asked 2019-Nov-20 at 07:44

            is there any way authenticate by node js ? i want to use node web api using sharepoint 2013 auth by username and password.after user login i will reach sharepoint lists for crud operations. i used node-sp-auth but these codes doesnt work for me. still i am getting 401 error code.

            ...

            ANSWER

            Answered 2019-Nov-20 at 07:44

            Try to use the sp-request to achieve it.

            Source https://stackoverflow.com/questions/58927570

            QUESTION

            node-sp-auth requires undefined Headers constructor
            Asked 2018-Feb-18 at 20:37

            I tried to access our internal sharepoint with the node-sp-auth library for Node.js but got stuck with a mysetrious error:

            ReferenceError: Headers is not defined

            I could trace it back to an internal function, that uses a constructor with that name. Seems for me like there might be some dependencies missing?

            In the following my code:

            ...

            ANSWER

            Answered 2018-Feb-18 at 20:37

            PnP-JS-Core utilizes Fetch API to perform REST requests. To get rid of this error you need to bring support for window.fetch to Node.js, for example using node-fetch module.

            The following example demonstrates how to utilize node-fetch with PnP-JS-Core:

            Source https://stackoverflow.com/questions/48583335

            QUESTION

            Sharepoint request digest value cross-domain
            Asked 2017-Apr-06 at 07:34

            I'm building a webapplication on NodeJS and ExpressJs where i am trying to upload documents to a Sharepoint Online library through the Sharepoint REST Api.

            I'm able to authenticate and create and update list items. I'm using node-sp-auth to authenticate and express-request to make http requests.

            In order to access the Sharepoint REST api i'm using the FormDigestValue in my header.

            Header:

            ...

            ANSWER

            Answered 2017-Apr-06 at 07:34

            use this format instead for the post:

            Source https://stackoverflow.com/questions/43248324

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install node-sp-auth

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i node-sp-auth

          • CLONE
          • HTTPS

            https://github.com/s-KaiNet/node-sp-auth.git

          • CLI

            gh repo clone s-KaiNet/node-sp-auth

          • sshUrl

            git@github.com:s-KaiNet/node-sp-auth.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Authentication Libraries

            supabase

            by supabase

            iosched

            by google

            monica

            by monicahq

            authelia

            by authelia

            hydra

            by ory

            Try Top Libraries by s-KaiNet

            spfx-fast-serve

            by s-KaiNetTypeScript

            sp-rest-explorer

            by s-KaiNetTypeScript

            spsave

            by s-KaiNetTypeScript

            gulp-spsave

            by s-KaiNetJavaScript

            sp-request

            by s-KaiNetTypeScript