How to implement an OpenID server in Rails?

I see a similar question for Ubuntu , but I'm interested in hosting my own OpenID provider through my Rails-based site, which already has an in-place authentication and authentication system.

Please note that I am not looking for a delegate method to use the site as OpenID .

What is the best way to do it right?

+6
ruby-on-rails openid
source share
3 answers

This " No Shit Guide for supporting OpenID in your applications " seems to be a step-by-step guide on what you want to do.

+5
source share

Episode Railscasts 68 OpenID Authentication describes how to do this. It's about a year, so you may have to do something different. I also strongly recommended either an updated or a new OpenID plugin (the link for one in the video is marked as "obsolete").

Err, wait to support OpenID authentication in the Rails application you are writing so as not to run the OpenID endpoint on rails. Here is a guide to implementing an OpenID server / endpoint in Rails with a very large form. gem install openid-server may be simpler, but you will learn more about its implementation, and the code is pretty simple.

+4
source share

This reminds me that the overview documents for the ruby-openid server are still missing . But you can see an example , and until the documents are migrated, see the docs for the python implementation that follows the same object model.

+1
source share

All Articles