-
Task
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
EJB client configured programmatically like this:
AuthenticationConfiguration common = AuthenticationConfiguration.empty()
.useProtocol("remote+http")
.useHost("127.0.0.1")
.usePort(8080);
final AuthenticationContext authCtx = AuthenticationContext.empty().with(MatchRule.ALL, common);
AuthenticationContext.getContextManager().setThreadDefault(authCtx);
InitialContext ctx = new InitialContext(getCtxProperties());
String lookupName = "ejb:/server/HelloBean!ejb.HelloBeanRemote";
HelloBeanRemote bean = (HelloBeanRemote)ctx.lookup(lookupName);
Inspired by this project https://github.com/jmartisk/mock-artifacts/tree/42f38cb259b035ad898222bc68370dfccfb8f796/ejbclient/eap7.1-authentication-context-unsecured
- is blocked by
-
JBEAP-11211 EJB client applications need an obsolete jboss-ejb-client.properties file for programmatic authentication context to work
-
- Closed
-