I want to have 1 database for few projects and only one of them have direct connection to db, first of all I want to implement user authentication. I should work over REST , without connecting to database. D you have any experience with devise gem working together with active resource. Thank you.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Sounds like you're looking for a single-sign-on solution. What you can do is setup one application to have a REST API, and enable single sign on for it which the others can utilize to connect to it. Try looking at this railscast about Single Sign On using OpenID.