不知道有没有人用过这个 https://github.com/joshsoftware/sso-devise-omniauth-provider Single Sign-On using Devise and Omniauth We wanted to solve these problems: A single User Manager application (which will authenticate ALL users with different roles) Different internal applications which talk to User Manager for authentication User should be able to login/sign-up via Social Networks like Twitter and Facebook. Single Sign On between all applications.
如果后端 app 全是 ruby 的 rack app,可以用 warden middleware,这样觉得挺方便的。全部 app 跑在一个进程里,需要时调用下 warden 的规则就好了。 这是个例子:http://team.skroutz.gr/posts/skroutz-warden/ 那种凭 key 来做单点登录的,太高端了吧~~
看这个 commit,“all specs should now pass under ruby 1.9.2 and 1.8.7”, https://github.com/gunark/rubycas-server/commit/4369335d745348626dc388b032472f662ea3218e
基于 Devise 和 Omniauth 实现单点登录 http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/