NodeSSPI | Server-side windows authentication for Node.js | Runtime Evironment library

 by   abbr C++ Version: v0.2.8 License: MIT

kandi X-RAY | NodeSSPI Summary

kandi X-RAY | NodeSSPI Summary

NodeSSPI is a C++ library typically used in Server, Runtime Evironment, Nodejs, Express.js applications. NodeSSPI has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Following code illustrates how to add NodeSSPI to the request processing pipeline. Although the code requires Express.js, NodeSSPI doesn’t have to be run under the context of Express.js. In fact, at runtime it has no npm module dependencies.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              NodeSSPI has a low active ecosystem.
              It has 141 star(s) with 16 fork(s). There are 12 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 23 open issues and 64 have been closed. On average issues are closed in 37 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of NodeSSPI is v0.2.8

            kandi-Quality Quality

              NodeSSPI has 0 bugs and 0 code smells.

            kandi-Security Security

              NodeSSPI has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              NodeSSPI code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              NodeSSPI 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

              NodeSSPI releases are available to install and integrate.
              Installation instructions, 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 NodeSSPI
            Get all kandi verified functions for this library.

            NodeSSPI Key Features

            No Key Features are available at this moment for NodeSSPI.

            NodeSSPI Examples and Code Snippets

            No Code Snippets are available at this moment for NodeSSPI.

            Community Discussions

            QUESTION

            how to use node-sspi with fastify
            Asked 2020-Aug-30 at 10:16

            I want to use https://github.com/abbr/nodesspi

            I am trying to use justify instead of express. It looks like it should just work but it doesn't. Its pretty much the equivalent of the express snippet. I get an error at the authenticate function telling me I pass a wrong argument.

            ...

            ANSWER

            Answered 2020-Aug-30 at 10:16

            The issue is that express like middle ware doesnt work on the fastify instance. The solution involves fastify-express

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

            QUESTION

            how to honor windows use from React js front end application when node js api is used
            Asked 2020-Mar-10 at 14:29

            Before going to question, please note, I have tried many suggestions from stackoverflow as well as many other websites. There are many suggestions, but most of them truly dont solve this question straight.

            My question in simple one sentence is, how to let my web server (which is a node js express based api) know, the logged windows user id (from my react js application) in an intranet application?

            Till now I am able to write express based node js server which uses node-sspi library and provides me the windows user id and groups. This API is as simple as

            ...

            ANSWER

            Answered 2020-Mar-10 at 14:29

            After researching finally got a breakthrough yesterday. So thought to answer my own question.

            5 points to change in my example.

            1. We need to refer both client and server with IP addresses or domains for communication purposes. So I changed all api calls origin mentions to their respective IP addresses.(localhost -> 192...)

            2. In cors, we need to mention IP address and port number as origin

            3. In client side calls if we are using fetch use credentials: include or if axios use withCredentials: true
            4. In server, cors must know the origin, so include your clients ip with port
            5. Use either express-ntlm or node-sspi as your windows authenticator.

            So Total change to my code in the example is,

            In server side

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install NodeSSPI

            Prerequisites: Except on a few [ platforms + Node version combinations](https://github.com/abbr/NodeSSPI-bin) where binary distribution is included, NodeSSPI uses node-gyp to compile C++ source code so you may need the compilers listed in [node-gyp](https://github.com/TooTallNate/node-gyp). You may also need to [update npm’s bundled node gyp](https://github.com/TooTallNate/node-gyp/wiki/Updating-npm’s-bundled-node-gyp). To debug, open NodeSSPI.sln in VS2017 and attach to node.js process.

            Support

            Pull requests and issue reporting are welcome. For issues to be considered by maintainer: 1. they must be reproducible. 2. there must be evidence the issue is related to NodeSSPI. To that end, the issue should contain platform information, error message relevant to NodeSSPI, and preferably code snippet. If code snippet is supplied, it must be self-contained, i.e. independent from your runtime environment or other modules not explictly specified via require in the code snippet.
            Find more information at:

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

            Find more libraries