title: Secure two separate java applications with one spring security
body: <p>I have been looking for quite awhile for solution to have one spring security for 2 or more applications.</p>
  
  <p>Basically I have a main app (<code>/</code>) running on tomcat, where the user can interact with it etc, and second one, in separate a context (<code>/player</code>).</p>
  
  <p>I want to use one spring security to secure both app. So when user will login to main app (<code>/</code>) will be also able to access another context.</p>
  
  <p>This is the point where I got stuck. If anyone has any idea how to set it up, that would be more then great.</p>