开发者

How to integrate OpenID into GlassFish?

开发者 https://www.devze.com 2022-12-18 05:23 出处:网络
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.

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消