views:

77

answers:

3

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 196? Or is there a tutorial how to write one (somewhere in the blogosphere)?

A: 

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.

BalusC
+1  A: 

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.

Pascal Thivent
Looks definitely better, +1.
BalusC
A: 

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!

Alex B