Currently, I am working on a web application that has been developed using angular2. One of the requirements for this application is to incorporate a single sign-on feature, where users do not have to manually input their login credentials. Instead, the application should be able to utilize the user's Windows credentials when accessing it. However, I am unsure about how to retrieve Windows credentials using JavaScript or TypeScript from the client side.
If anyone has any insights or suggestions on how to implement this functionality, please feel free to share them. Your help would be greatly appreciated.