顯示具有 NodeJS 標籤的文章。 顯示所有文章
顯示具有 NodeJS 標籤的文章。 顯示所有文章

2014/11/25

Get Windows account by NodeJS with Nope-SSPI


  1. Install nodeJS application.
  2. Install nodeJS module
    1.  npm install express@3.4.3
    2.  npm install node-sspi
  3. Create a app.js file
  4. Exec the app.js file
  5. Open IE or Chrome Browser then browser the url "http:\\localhost:3000 "


Reference:  https://www.npmjs.org/package/node-sspi

NodeJS Reading List

陸續補充中....

Authentication

User Authentication With Passport.js
http://mherman.org/blog/2013/11/11/user-authentication-with-passport-dot-js/#.VHMEutKUffI

passport-windowsauth
https://www.npmjs.org/package/passport-windowsauth

◎Windows SSPI server-side authentication for Node
https://www.npmjs.org/package/node-sspi
The SSPI will get the client user windows account by IE or Chrome.
But needed express@3.4.4 (the latest version will compile error.)
 [more code...]

Authorize

cansecurity
https://www.npmjs.org/package/cansecurity


Mail helper

nodemailer

2014/11/21

Mongoose shutdown immediately when start it on Window, exec "mongod --repair" on Mongoose\Bin .

Shutdown message:
Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.


Mongoose shutdown immediately when start it on Window,
exec "mongod --repair" on  '~Mongoose\Bin '.
Then restart mongod service.