Apr 12th, 2011, 08:01 AM
Sharing login/SSO across multiple web apps
I have two web apps based on Spring MVC 3 and Spring Security. They are deployed on the same web server, under two different contexts of course:
Each app will ask the user to login (which is fine) but what I need is for both apps to accept a login on the other app. In other words, if you log in to webapp1 and then access the url for webapp2, you should not be required to authenticate yourself again.
I'm using a simple user service with users stored in a property file:
Is this possible, and if so what is the simplest way to achieve this. A hack would be ok, adding new stuff to the infrastructure (CAS server etc) is less ok.
Any suggestions would be appreciated. I'm a bit stuck here.
Tags for this Thread