I have an application build in angular 7 and to authenticate a user I am using LDAP. To authenticate the user I need to send the username (i:e client machine name) in the API.

Previously I was using jsp for the same and it gives me client machine name. I have an API on which I request with key username & password. Now I am migrating the application to angular.

Please let me know how can I get the client machine name in angular application or an alternative solution.

I tried the os module & also tried with some node packages but unable to get the client machine name as it is server-side.

0 Answers