I am rather stumped by trying to identify where CAC/Active Directory(AD) authentication comes into play for Java based web applications. Take for example multiple J2E JSF applications hosted on multiple Weblogic containers. Each of those applications limits access of the user by checking what AD role they are in. At what stage does one perform CAC/AD authentication, if all of these applications require it?
It was my understanding that ideally, you want a gateway seperate from your applications that does the authentication. A simple example is F5 hardware/sotware bundle. Once the user authenticates with their CAC/pin combo, they are forwarded to the deployed application on Weblogic, with some additional information in their headers(like the AD roles previously mentioned). I am not saying that I should purchase that as there is no programmable solution, rather as an example that authentication and resources of use are two seperate entities, and should not necesarily be combined for this problem.
In practice, however, I have read that many projects are combining Microsoft and Apache services to allow authentication. Here is a good blog post that outlines some benefits. Once a user authenticates against IIS, they are forwarded to the application on apache. Regardless, mixing IIS and Weblogic just seems like a bad idea off the bat, especially when trying to configure the communication betweem the two nodes.
There are also numerous posts on stack and the web, dating back to pre 2012 days, which reccomend different solutions. One post recommends the following:
you can specify set of acceptable certificate policies when the server validates the client certificate
While the answer makes sense in general terms, the author never goes into architectual details for this communication to take place. Some other posts reccomend JOSSO, to perform SSO functionality like the gateway mechanisam previously mentioned. This post also talks about using PKCS11 for reading smart cards directly by using the manufacturer provided drivers. There are also questions that have no answer, such as Authenticating AD server user using DOD issued CAC in java .
Considering it has been, on average, 5 years between some of these posts, I am unsure what todays best practice is for this problem. Is the gateway approach an ideal way to do authentication? Are my ideas not applicable at all and a better solution exists?