开发者

Sinatra, Rails and Rack - User/Session Management

Does anyone know of a way to authenticate in a Rails application and allow other Sinatra applications to pass that authentication token and session state through rack?

I'm looking for something that basically allows single sign on. (I already have the secret and key in the rails 开发者_如何学运维app with authentication, now looking to use that as the single sign on service with other Sinatra applications)


I am going to use Rubycas client, which will allow me to use LDAP and push sessions to each ruby application I create. Hancock is nice that it uses OpenID, but it is not what I need.

RubyCAS Client: http://code.google.com/p/rubycas-client/


I know its not exactly what your looking for but check out hancock on github. Its a open source project for SSO in Sinatra. If nothing else it will give you an idea of where to start.


I think what you're looking for is warden:

https://github.com/hassox/warden/wiki

This is what devise uses.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜