Java – how do I automatically log in to this site using system credentials?
I need to develop a web application for intranet users I don't want them to enter login credentials every time they visit the website It should be loaded automatically from the system user name and password That is, if they have a valid system user name and password, they should be able to log in to the application I'm using Java How to meet this requirement?
Solution
You are looking for windows integrated authentication In order to implement it, your server needs to support authentication against active directory (using Kerberos) and be configured to respond to unauthenticated requests from browsers using www authenticate: NTLM or negotiate headers
I don't know how to do this. I don't know what server platform you're using However, assuming that your platform supports JAAS, here is a blog post that introduces some basic knowledge of configuring it – http://webmoli.com/2009/08/29/single-sign-on-in-java-platform/