Is there a way to extend the authentication operation that connects the client application to the EJB using standard JAAS / container-based security? I am looking for a way to use more than just a username to authenticate a user (in this case a domain name is also required). Ideally, I would like to be able to use SessionContext.getCallerPrincipal () to access the username and domain name in EJB.
I use Glassfish, if that affects the answer at all. I need to create a user login module / user world and what should it do?
source share