I'm playing with OpenID authentication in my app for the first time. 
I can successfully authenticate user against choosen provider, but I don't know how to correctly login user on a Java EE server, so that it looks like user was logged in with e.g. form-based login. I could use Servlet 3.0 login but it takes username/password pair and I don't have passwords when using OpenID. 
I'd like to be able to get a Principal object and use isUserInRole method etc. Am I missing something? I'm running this app on JBoss 7.1, but I suppose there should be a common way to do that. Or maybe I'm missing something and all that stuff with Principal and user roles is done differently when using OpenID?