I have a simple Javascript site. Windows Authentication strategy for Passport.js. I'm trying to capture the windows username of the person using the Web application from the client-side(browser). * package which is not a good practice and may break in a future Java release. I needed to re-implement a legacy application to use Role-based instead of User-based authentication. Hi all Anyone can help me, how to get windows login user through jQuery or Java script. A better solution is to call the directly the Windows API using JNA! I am trying to get a user's credentials from windows authentication for vb.net.