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
In namespace the name can be add it in the java with the @Service("userDetailsService") with a name.
java
@Service("userDetailsService")
You can also define beans and add them to the chain.
[...]
the _authenticationManager is the name of the bean that is registered in namespace.
_authenticationManager
This would be executed before the basic auth.