Java – spring security, tomcat, getRemoteUser method

javaspring-securitytomcat

i've got two applications in same tomcat. one of those applications uses spring security for authentication. i would like method getRemoteUser to return valid user name in second application when logged into first one.

is there easy way to achieve this? can u please point me out to simplest possible solution which will do that?

thanks for responses

Best Answer

I do not believe Application 2 can access application 1's security information. Not directly anyways, perhaps using remoting, or webservices will allow you to do this. However, I do not think there is a place in the spring security framework where you can go across applications and get information though java code only.

Related Topic