I see a similar question for Ubuntu, 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.
我为Ubuntu看到了一个类似的问题,但我有兴趣通过我已经拥有身份和身份验证系统的基于Rails的站点托管我自己的OpenID提供程序。
Note that I'm not looking for the delegate method to use the site as an OpenID.
请注意,我不是在寻找将该网站用作OpenID的委托方法。
What's the best way to do this properly?
这样做的最佳方法是什么?
3 个解决方案
#1
5
This "No Shit Guide To Supporting OpenID In Your Applications" seems to be a step-by-step tutorial for what you want to do.
这个“在您的应用程序中支持OpenID的无需指南”似乎是您想要做的一步一步的教程。
#2
4
Railscasts episode 68 OpenID authentication 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").
Railscasts第68集OpenID身份验证描述了如何做到这一点。它大概一岁了,所以你可能不得不做一些不同的事情。我还强烈要求更新或更新的OpenID插件(视频中的链接标记为“过时”)。
Err, wait, that is to support OpenID authentication in a Rails application you are writing, not to have run an OpenID endpoint in rails.. Here is a guide to implimenting an OpenID server/endpoint in Rails pretty-much form scratch.. gem install openid-server
might be easier, but you'll learn more implementing it yourself, and the code is pretty simple.
呃,等等,那就是在你正在编写的Rails应用程序中支持OpenID身份验证,而不是在rails中运行OpenID端点。这是一个在Rails中实现OpenID服务器/端点的指南。安装openid-server可能会更容易,但您将了解更多自己实现它,并且代码非常简单。
#3
1
This reminds me that the overview docs for ruby-openid server are still missing. But you can see the example, and until the docs are ported over, see the docs for the python implementation which follows the same object model.
这提醒我,ruby-openid服务器的概述文档仍然缺失。但是你可以看到这个例子,并且在移植文档之前,请参阅跟随相同对象模型的python实现的文档。
#1
5
This "No Shit Guide To Supporting OpenID In Your Applications" seems to be a step-by-step tutorial for what you want to do.
这个“在您的应用程序中支持OpenID的无需指南”似乎是您想要做的一步一步的教程。
#2
4
Railscasts episode 68 OpenID authentication 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").
Railscasts第68集OpenID身份验证描述了如何做到这一点。它大概一岁了,所以你可能不得不做一些不同的事情。我还强烈要求更新或更新的OpenID插件(视频中的链接标记为“过时”)。
Err, wait, that is to support OpenID authentication in a Rails application you are writing, not to have run an OpenID endpoint in rails.. Here is a guide to implimenting an OpenID server/endpoint in Rails pretty-much form scratch.. gem install openid-server
might be easier, but you'll learn more implementing it yourself, and the code is pretty simple.
呃,等等,那就是在你正在编写的Rails应用程序中支持OpenID身份验证,而不是在rails中运行OpenID端点。这是一个在Rails中实现OpenID服务器/端点的指南。安装openid-server可能会更容易,但您将了解更多自己实现它,并且代码非常简单。
#3
1
This reminds me that the overview docs for ruby-openid server are still missing. But you can see the example, and until the docs are ported over, see the docs for the python implementation which follows the same object model.
这提醒我,ruby-openid服务器的概述文档仍然缺失。但是你可以看到这个例子,并且在移植文档之前,请参阅跟随相同对象模型的python实现的文档。