How to integrate OpenID into GlassFish?
I want to integrate OpenID as an authentication mechanism into GlassFish 3.1 (preview). The Development Guide says that JSR 196 could be used to implement custom authentication mechanisms like OpenID.
Is there already an OpenID authenticator for GlassFish conforming to JSR 1开发者_高级运维96? Or is there a tutorial how to write one (somewhere in the blogosphere)?
For another implementation based on the less experimental OpenID4Java (at least I think so, the OpenID extension is still in alpha and is clearly less widely used than OpenID4Java), see OpenID ServerAuthModule (JSR-196) with OpenID4Java that the same author posted last week.
You can use the OpenID extension of the OpenSSO project. Here's a blog about it (note, it exist of 3 parts): part I, part II, part III.
Update: the links in the blog itself were broken (unnecessarily hardcoded with port 8081), so I added the three correct links.
There's an even simpler way of doing it - by using the Authentic Roast. library. I wrote my own OpenID authenticator, plugged into glassfish 3 and it works great!
精彩评论