login to multiple web applications
Hi,
I have created a web application using jsp/java which has links to other web applications. I hope to achieve the effect of doing an auto-login to the other web applications when users try to log in to my web application using my web application login form, and therefore do not need to login again when they click on the links in my web application.
Any advise on how to do it?
Thanks a lot
What you need is "Single Sign on"
If you deploy all your web application on same Application Server and on same JVM then you can use ServletContext or application object to put user name and password inside them or put them as request parameter in request object then send them to different application.
otherwise you need to read user name and password from database or file.
simple to understand:
if all your application deployed in same context you can send user name and password in request body (POST) or request related object's contents,
If your application are not on same context you should use database or file to store user name and password and applications should read them from there.
It is not easy process to implement in case on different context maybe you can look for Single sign on applications for example Sun Identity manager, and see how you can handle it.