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
精彩评论