EAP 7.1+ Identity Propagation does not work with Spring Security that uses HttpServletRequest.login()
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2
- 7.1
- Spring Security
Issue
- EAP 7.1+ Identity Propagation does not work with Spring Security that uses HttpServletRequest.login()
11:31:42,336 ERROR [stderr] (default task-2) org.jboss.ejb.client.RequestSendFailedException: EJBCLIENT000409: No more destinations are available
11:31:42,336 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:592)
...
11:31:42,348 ERROR [stderr] (default task-2) Suppressed: org.jboss.ejb.client.RequestSendFailedException
11:31:42,348 ERROR [stderr] (default task-2) at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:101)
11:31:42,348 ERROR [stderr] (default task-2) at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:74)
11:31:42,349 ERROR [stderr] (default task-2) at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:215)
11:31:42,349 ERROR [stderr] (default task-2) at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)
11:31:42,349 ERROR [stderr] (default task-2) at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:949)
11:31:42,349 ERROR [stderr] (default task-2) ... 5 more
11:31:42,349 ERROR [stderr] (default task-2) Caused by: javax.security.sasl.SaslException: Authentication failed: none of the mechanisms presented by the server (PLAIN) are supported
11:31:42,349 ERROR [stderr] (default task-2) at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:444)
11:31:42,349 ERROR [stderr] (default task-2) at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
11:31:42,350 ERROR [stderr] (default task-2) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
...
Resolution
Update to EAP 7.4 latest Update.
Update to EAP 7.3+ or apply the current JBoss EAP 7.2 Update 9
Root Cause
This content is not included.JBEAP-16152 - identity propagation does not work when programmatic web authentication via HttpServletRequest.login() is used - fixed in EAP 7.2 Update 1+
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.