开发者

OpenSSO sample applications?

Do you know any good sample applications to demonstrate how a webapplication is added to use Open开发者_如何学运维SSO?


The hard part is to setup and configure the OpenSSO/OpenAM server. This is an important part if you want to add SSO to a website by using OpenAM. The simplest example I know is this site about Integrating Applications With OpenSSO, where the SSO server sets a cookie if the user is logged in. It is an older site from Sun, but the Ruby on Rails example still works (with Rails 2.3.x or 3.0.x). I only had to replace

req['Cookie'] = token_cookie

in line 61 and 79 by

req['Cookie'] = token_cookie_name+"="+token_cookie

where token_cookie_name is the name of the cookie returned by the function get_cookie_name_for_token(). Working with SAML is a bit more complicated.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜