I have a tomcat 7 setup with oldApp.war and newApp.war deployed on it. Both the applications share the same login credentials for users on the database.
I can access the apps using https://localhost/oldApp
and https:localhost/newApp
respectively.
My oldApp is a Spring MVC java application and when the user is logged into the oldApp I want to have a link which will take the user into the newApp without asking for the login credentials.
I want to know how to implement SSO to do this. I preferably don't want to run any external service to handle this.
Thanks in advance.
Update: Its 2018 and the below info is out of date. If you’re starting a new application then use a federated identity protocol like Open ID Connect and you’ll get SSO for free.
There are a few approaches you could take: