Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8836497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:30:34+00:00 2026-06-14T09:30:34+00:00

Problem I want to be able to use Windows Authentication with Node.js. I understand

  • 0

Problem
I want to be able to use Windows Authentication with Node.js.

I understand that IIS handles Windows Authentication in ASP.NET, however what I can’t figure out is, how I can get at the current Client Windows username from node.js. I get that it’s not running via IIS (and don’t really want to go down the IISNode route).

There must be a way of getting at the Client’s windows username via Node.js – even if I have to write a C++ library / service.

Initial thoughts were that I’d be able to setup a web service within ASP.NET, which would use Windows authentication, and allow me to use a web request to get that user – but this is perhaps too naive!

I don’t want to ask the user for their username and password – as this misses the point.

Any ideas, thoughts, or places I can look?
Or is this just not possible?

Note: This is within a closed Intranet, and Windows Authentication is used within our ASP.NET applications along with Active Directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:30:35+00:00Added an answer on June 14, 2026 at 9:30 am

    Approach

    Unless I miss some of the requirements, you should be able to setup a IIS web site to relay requests to your Node.js application so that

    • A client browser will authenticate against your IIS site;
    • The IIS site will forward the authenticated request to the Node.js app and back to client.

    Make sure to disable anonymous access and only use IWA for the IIS site.

    Please see Relaying a request in ASP.NET for a couple of examples of how to relay requests in ASP.NET with C# or VB. You would also need to pass the user name with a header or a GET/POST parameter:

    Response.AppendHeader("CustomUserNameHeader", Page.User.Identity.Name);
    

    Assumptions

    • The Node.js app needs to know the name of the user logged in on the client computer.
    • It’s possible to make the Node.js app accessible only from the IIS site, otherwise, the solution is completely insecure.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem I want to use the interactive debugger with IntelliJ. Unfortunately, I can't convince
Problem I want to create an application that can be extended somehow by programmers.
Core problem: I want to be able to take an instance of a templated
Problem: I want disparate sections of my code to be able to access a
Simple problem (I think): I want to be able to invoke a click method
I use some libraries that I don't want built as part of every project
I have the following problem: I want to be able to tell if my
Problem: Customer X is a Windows user who wants to be able to trigger
I have a windows service application that runs as Local System, and I want
I'm able to run 2 or more WPF windows on different thread. The problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.