Create your own OpenID-like system provider

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

In my case, I have several 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 in all my other applications in the same way that "Facebook connect" or OpenID works. In a few words, "users.example.com" should work as an "OpenID-like system" for my applications in "example.com".

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

PS: Since I'm new to this question, I don't know if I'm saying something that makes sense. So someone can help me understand (if I am wrong) ...

+3
source share
1 answer

Facebook uses OAuth 2.0 and is now more popular than openid. You can see how to implement it on the rails or search for "oauth rails" and you will get enough information about it.

In my opinion, this is what you are looking for.

0
source

Source: https://habr.com/ru/post/1783022/


All Articles