使用oauth-plugin(pelle)实现oauth提供程序时出错

使用oauth-plugin(pelle)实现oauth提供程序时出错

问题描述:

我想使用oauth来保护我的web应用程序的API。我搜了很多&最后决定尝试下面的链接http://stakeventures.com/articles/2007/11/26/how-to-turn-your-rails-site-into-an-oauth-provider。 我按照步骤&我能够成功注册新的应用程序。 我正在使用设计进行身份验证& pelle的oauth-plugin与兼容acts_as_authenticated,restful_authentication或restful_openid_authentication正如上面的帖子中提到的。 所以,我收到以下错误,当我尝试运行http://localhost:3000/oauth/autherize使用oauth-plugin(pelle)实现oauth提供程序时出错

NameError (undefined local variable or method `login_required' for #<OauthController:0xc410490>): 

我搜索的解决方案&我得到了下面的链接http://groups.google.com/group/oauth-ruby/browse_thread/thread/3656e3904050fd9a

现在有任何其他解决方案,除了上面提到的链接。如果是,那么请指导我关于那&如果不是那么请告诉我如何实际执行该解决方案。 oauth_controller_spec.rb文件实际在哪里?我需要为&编辑插件吗?

你可能想看看这里:authlogic and oauth-plugin。也许this answer是有帮助的。