I currently have a setup that looks something like this:
spring-security.xml:
In Spring Security the scenario you want to cover is described in reference manual, chapter Pre-Authentication Scenarios.
Basically you have to:
, PreAuthenticatedAuthenticationProvider (with ).EDIT: In this answer OP shows his way of implementig custom PRE_AUTH_FILTER.