Device & ActiveResource

2019-07-29 17:57发布

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条回答
Evening l夕情丶
2楼-- · 2019-07-29 18:23

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.

查看更多
登录 后发表回答