Is it possible to use Subject.doAs() in combination with org.jboss.security.ClientLoginModule in a remote client that connects to a WildFly 9 secured EJB application?
We have an older application that is using Subject.doAs(), org.jboss.security.ClientLoginModule and JBoss 6 and it would be nice if we could migrate to
Wildfly 9 without needing to rewrite too much of the old client code.
I have looked at some WildFly secured remote examples found online but they either use:
1. InitialContext using Context.URL_PKG_PREFIXES="org.jboss.ejb.client.naming" where the user and password is specified in jboss-ejb-client.properties.
2. PropertiesBasedEJBClientConfiguration, ConfigBasedEJBClientContextSelector and EJBClientContext where the user and password are set using the PropertiesBasedEJBClientConfiguration directly.
Booth of the alternatives above works but I'm looking for a way to use JAAS config and Subject.doAs() on the remote client when invoking secured remote EJB:s on WildFly.
Retrieving data ...