I've made an attempt at fixing this issue by registering a BeanComponentDefintion for the AuthenticationManager, but I've had some problems.
Firstly, I couldn't get the AuthenticationManager bean instance to appear in Spring IDE unless I explicitly declare a "source" object. Could you confirm whether Spring IDE will show beans which do not have a source property? The AuthenticationManager is registered internally by the namespace, so it doesn't really make sense for it to be attached to a specific HTML element.
I managed to get the alias to appear (and the error to go away) by using the method:
pc.getReaderContext().fireAliasRegistered(BeanIds.AUTHENTICATION_MANAGER, alias, pc.extractSource(element));
after registering the alias using
Is that the correct approach? The alias just appears as a little bean icon with a square round it and the alias name next to it. There is no indication of what it actually aliases. The warning in the XML editor only goes away when the AuthenticationMananger bean is visible, so I would like to find a better solution for that, other than giving it a source object.