Injection only works in "managed" resources. Your authentication plugin may or may not be one, depending on how it's implemented. JNDI lookup on the other hand should work fine.
Thanks. I am trying it out using lookup.
But I don't understand how to implement the plugin so that it is "managed"? I am following the example in https://community.jboss.org/wiki/AddingCustomUserStoresToSecurityRealms (
We do not support "managed" plug-ins so a JNDI lookup is the way to go.
Thanks. If using the Authentication plugin, can I propagate additional information like host information and access it in the plugin? Kinda similar to https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/ejb-security-interceptors