开发者

Cross application authentication with Devise and Warden

I have 2 applicatio开发者_StackOverflowns. A rails 3 application with devise, and a Sinatra app with warden.

I already implemented Devise with the rails app.

My sinatra application is an api provider for the rails/javascript application.

What I want now is to make warden authenticated depends on Devise.

Notice that both applications are sharing the same { databases } and { cookies/sessions [:key, :secret, :domain, :path] }

Thanks


This answers you all: http://engineering.aioha.com/post/15082655842/building-a-web-client-like-pros

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜