I need to be able to have two web apps share a login. I can have them on the same server if that is necessary. I've tried using the remember-me feature but that didn't work. Basically I have two war files deployed and am trying to get spring to share a login between two html files:
Both of my security context settings are setup like so (the only difference being the .html filename in the pattern):
both of these configurations work perfectly fine individually, I was just hoping that when I login to one, it would recognize the same login on the other. Is this even possible? Is there a better way to do this?
<sec:intercept-url pattern="/a.html" access="hasRole('ROLE_USER')"/>
<sec:intercept-url pattern="/**" access="permitAll"/>
<sec:jdbc-user-service data-source-ref="dataSource" users-by-username-query="SELECT USERNAME,PASSWORD,ENABLED FROM USERS WHERE USERNAME = ?"/>