This content has been marked as final.
Show 4 replies
-
1. Re: DB access in AuthenticationPlugin impl
jaikiran Apr 10, 2013 8:31 PM (in response to raylite3)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.
-
2. Re: DB access in AuthenticationPlugin impl
raylite3 Apr 10, 2013 10:32 PM (in response to jaikiran)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 (
SampleAuthenticationPlugIn
) -
3. Re: DB access in AuthenticationPlugin impl
dlofthouse Apr 11, 2013 5:41 AM (in response to raylite3)We do not support "managed" plug-ins so a JNDI lookup is the way to go.
-
4. Re: DB access in AuthenticationPlugin impl
raylite3 Apr 12, 2013 12:45 PM (in response to dlofthouse)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