I need to develop a web application for the Intranet users. I dont want them to enter the login credentials each time they visit the site. It should be automatically loaded from the System Username and Password. i.e If they have a valid system username and password they should be able to login to the application. I am using Java. How to fulfill this requirement?
Share
What you are looking for is called Windows Integrated Authentication. To be able to implement it, your server needs to support authentication against Active Directory (using Kerberos) and to be configured to respond to unauthenticated requests from the browser with WWW-Authenticate: NTLM or Negotiate header.
I can’t tell you exactly how to do this, without knowing what server platform you’re using. But assuming your platform supports JAAS, here’s a blog post that gives some basics on configuring it – http://webmoli.com/2009/08/29/single-sign-on-in-java-platform/