开发者

Cross application authentication with Devise and Warden

开发者 https://www.devze.com 2023-03-23 12:56 出处:网络
I have 2 applicatio开发者_StackOverflowns. A rails 3 application with devise, and a Sinatra app with 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

精彩评论

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