Windows Authentication via Web Request C++ / Node.js -


problem want able use windows authentication node.js.

i understand iis handles windows authentication in asp.net, can't figure out is, how can @ current client windows username node.js. it's not running via iis (and don't want go down iisnode route).

there must way of getting @ client's windows username via node.js - if have write c++ library / service.

initial thoughts i'd able setup web service within asp.net, use windows authentication, , allow me use web request user - perhaps naive!

i don't want ask user username , password - misses point.

any ideas, thoughts, or places can look? or not possible?

note: within closed intranet, , windows authentication used within our asp.net applications along active directory.

approach

unless miss of requirements, should able setup iis web site relay requests node.js application that

  • a client browser authenticate against iis site;
  • the iis site forward authenticated request node.js app , client.

make sure disable anonymous access , use iwa iis site.

please see relaying request in asp.net couple of examples of how relay requests in asp.net c# or vb. need pass user name header or get/post parameter:

response.appendheader("customusernameheader", page.user.identity.name); 

assumptions

  • the node.js app needs know name of user logged in on client computer.
  • it's possible make node.js app accessible iis site, otherwise, solution insecure.

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -