Search code examples
ruby-on-railsrubyauthenticationopenidopenid-selector

Using Javascript OpenID Selector with Rails


Based on this article, it seems like SO is using Javascript OpenID Selector (JOIS) to handle OpenID logins in its "view".

I love the simple interface and I would like to use it in a Rails project.

I know that RPX would probably be the easier choice, but I'd like to build this on my own.

Can you help me find answers to a few questions I have?

  1. Has anyone of you already done this or does anyone know of a good example?
  2. What setup (combination of plugins/gems) would you recommend if I'm using JOIS in my view?
  3. Is there a JOIS implementation (or anything similar besides RPX) based on Prototype instead of JQuery?
  4. Will I need another library besides the Ruby OpenID library to support all the account providers (OpenID, Google, Yahoo, etc.) supported by JOIS?

Thank you!


Solution

  • I helped myself and implemented Javascript OpenID-Selector with Rails (though with JQuery instead of Prototype):

    https://github.com/vazqujav/authlogic_openid_selector_example