<p>I see a similar question <a href="https://stackoverflow.com/questions/28588/how-do-you-set-up-an-openid-provider-server-in-ubuntu">for Ubuntu</a>, but I'm interested in hosting my own OpenID provider through my Rails-based site that already has an identity and authentication system in place.</p>

<p>Note that I'm not looking for the delegate method to <a href="https://stackoverflow.com/questions/4661/can-you-apply-more-than-one-openid-to-a-stackoverflow-account#4777">use the site as an OpenID</a>.</p>

<p>What's the best way to do this properly?</p>

[{'answer_id': 45375, 'author': 'John', 'author_id': 2168, 'author_profile': 'https://Stackoverflow.com/users/2168', 'pm_score': 3, 'selected': False, 'text': '<p>This "<a href="http://www.danwebb.net/2007/2/27/the-no-shit-guide-to-supporting-openid-in-your-applications" rel="nofollow noreferrer">No Shit Guide To Supporting OpenID In Your Applications</a>"\nseems to be a step-by-step tutorial for what you want to do.</p>\n'}, {'answer_id': 45618, 'author': 'dbr', 'author_id': 745, 'author_profile': 'https://Stackoverflow.com/users/745', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://railscasts.com/episodes/68-openid-authentication" rel="nofollow noreferrer">Railscasts episode 68 OpenID authentication</a> describes how to do exactly this. It\'s about a year old, so you may have to do some stuff differently. I\'d also strongly for either an updated or newer OpenID plugin (the link for the one in the video is labeled "outdated").</p>\n\n<p>Err, wait, that is to support OpenID authentication in a Rails application you are writing, <em>not</em> to have run an OpenID endpoint in rails..  <a href="http://jystewart.net/process/2007/10/a-ruby-on-rails-openid-server/" rel="nofollow noreferrer">Here</a> is a guide to implimenting an OpenID server/endpoint in Rails pretty-much form scratch.. <code>gem install openid-server</code> might be easier, but you\'ll learn more implementing it yourself, and the code is pretty simple.</p>\n'}, {'answer_id': 86659, 'author': 'keturn', 'author_id': 9585, 'author_profile': 'https://Stackoverflow.com/users/9585', 'pm_score': 1, 'selected': False, 'text': '<p>This reminds me that <a href="http://trac.openidenabled.com/trac/ticket/267" rel="nofollow noreferrer">the overview docs for ruby-openid server are still missing</a>.  But you can see <a href="http://openidenabled.com/files/ruby-openid/repos/2.x.x/examples/rails_openid/app/controllers/server_controller.rb" rel="nofollow noreferrer">the example</a>, and until the docs are ported over, see the <a href="http://openidenabled.com/files/python-openid/docs/2.2.1/openid.server.server-module.html" rel="nofollow noreferrer">docs for the python implementation</a> which follows the same object model.</p>\n'}]
['https://Stackoverflow.com/questions/45277', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4647/']