My web app has multiple authentication managers (one for API one for WEB access). The api should have a basic auth service only - configured via the spring security markup a
Please keep in mind that this Spring Security XML namespace is just a neat way of organizing your XML. You could achieve exactly the same solution with plain config. That way you will be able to use ID, as usual. This blog post might be helpful for you.