문제

I know that Facebook use their own OpenID-like system called "Facebook connect", which you can use to authenticate users on your site, among other features.

In my case I have multiple Ruby on Rails applications:

  • users.example.com
  • profiles.example.com
  • photos.example.com
  • ...

I would like to use 'users.example.com' as a web service that allows users to authenticate to all my other applications the same way as works "Facebook connect" or OpenID. In few words, 'users.example.com' must works as a "OpenID-like system" for my applications in 'example.com'.

Can anyone give me tips and links to some useful resources?

P.S.: since I am a newbie in this matter, I do not know if I'm saying things that make sense. So someone could help me to understand (if I am wrong) ...

도움이 되었습니까?

해결책

Facebook is using OAuth 2.0 and this is now more popular than openid. You can see how to implement it on railcasts or search for "oauth rails" and you will geht enough info about it.

In my opinion this is the thing you are looking for.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top