title: Two realms in same application with Spring Security?
body: <p>We're building a web application that is available to both authenticated and anonymous users. If you decide not to register/login you only have a limited set of features. User authentication is done over OpenID with Spring Security. That works fine.</p>
  
  <p>However, the application also comes with an admin UI that is deployed at <code>&lt;host&gt;/&lt;context-root&gt;/admin</code>. Can we have two separate realms with Spring Security (e.g. basic auth for <code>/admin/**</code>)? How does that have to be configured?</p>