Capture user name logged into machine via Web Application

Asked

Viewed 1,706 times

5

There are two applications, one in Java and one in ASP and both manage to integrate with Active Directory without me typing user and network password. The application made using ASP, automatically logs when accessing the url, but does not work in Firefox and I have to enter user and password. The application made in Java, I select an option and the login is done automatically.

Doubts

How can I capture the logged-in user name without Applet or Activex Control? Javascript? I always thought that picking up the machine user was only possible with Applet or Activex Control


Remarks: There are similar questions, but it is for integration via language. I don’t have the source code of both apps to check how it’s done, and I’ve already looked through Chrome Dev Tools and I can’t find anything.

2 answers

1

It is not possible, since javascript does not have direct access to the operating system. It would only be possible if you have a server-side script running on your client, and by javascript you make an ajax request and get that value.

0

Local Storage that can be used in multiple browsers. Or store like any other variable by checkbox even in your php code with save option, creating a button with the option to remind it.

  • I read about Local Storage, but this does not solve the problem since I need to know the name of the user who is logged in to the machine. And I need it done through the browser.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.