Hi, if you are asking how to use some additional information in order to authenticate, you might want to check if custom authentication mechanism
would address your problem.
But if you ar asking about how to obtain additional information about the identity in the application, you can use attributes of security identity. In the applicaiton you can use SecurityDomain.
getCurrent().getIdentity(Principal principal); to obtain a security identity and use
getAttributes() to obtain its attributes. To associate the attributes in the login module, just add those as an additional principal of the Subject as mentioned in the blog post.