We are trying to authenticate our REST api using LDAP. We have ldap security-domain configured in our jboss EAP. There must be a way to tell spring's PreAuthenticatedAuthenticationProviders that the user is already authenticated by another system (LDAP w/JBoss security-domain & the jboss-web.xml has the security-domain specified in it). Here is the code snippet.
This kind of configuration was working in EJB with @RolesAllowed annotation and we are trying to make this work in our spring boot app.
The technical term for this is Single Signon (SSO). Traditionally, this was something that Tomcat would do using a third-party Realm, and I think that there was one from Carnegie-Mellon University that was popular.