I am currently tasked with developing a generalized authentication module for Wildfly and I'm in a bind with not knowing how to go about it. I'm trying to build servlets that would receive the user's credentials in the request parameters or get a user's x509 cert and then authenticate them and create their session with their associated roles. After researching it seems that I need to use JASPIC bridged with JAAS, but I have a couple of questions from here:
Hopefully someone can help me or point me in the direction of a good example to follow.
Thanks for your time.