authlogic_rpx 出现问题
我正在尝试运行 http://github.com/tardate/rails-authlogic- rpx-sample (仅更改了 Rails 版本),但收到错误消息 http://gist.github。 com/385696,当RPX通过Google帐户身份验证成功后返回信息时。这里有什么问题吗?我该如何解决它?
该代码已由作者成功使用 Rails 2.3.3 进行测试: http://rails-authlogic -rpx-sample.heroku.com/
我在Windows上运行cygwin和rails (2.3.5)、rpx_now (0.6.20)、authlogic_rpx (1.1.1)。
更新
几个小时后,RPX 拒绝了我的应用 http://img96 .imageshack.us/img96/2508/14128362.png
Update2
相同的错误消息 ( http://gist.github.com/386124) 与 http://github 一起出现.com/grosser/rpx_now_example ,但在本例中 RPX 允许我登录(到目前为止)。
已解决
见下文
I'm trying to run http://github.com/tardate/rails-authlogic-rpx-sample (only rails version was changed) but get error message http://gist.github.com/385696, when RPX returns information after successful authentication via Google Account. What is wrong here? And how I can fix it?
The code was successfully tested with rails 2.3.3 by its author: http://rails-authlogic-rpx-sample.heroku.com/
I run on Windows with cygwin and rails (2.3.5), rpx_now (0.6.20), authlogic_rpx (1.1.1).
Update
In several hours RPX rejected my app http://img96.imageshack.us/img96/2508/14128362.png
Update2
The same error message ( http://gist.github.com/386124) appears with http://github.com/grosser/rpx_now_example , but in this case RPX allows me to sign in (so far).
Solved
See below
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须首先在 http://www.RPXnow.com 注册您的 RPX 应用程序并设置其名称。您将获得一个 API 密钥,您应该在
config/environment.rb
文件中设置该密钥:或者:阅读幻灯片 35:http://www.slideshare.net/tardate/srbauthlogicrpx
您不应该在数据库级别强制执行任何约束。
You have to first register your RPX app at http://www.RPXnow.com and set its name. You'll be assigned an API key which you should set in the
config/environment.rb
file:Or: Read slide 35: http://www.slideshare.net/tardate/srbauthlogicrpx
You shouldn't have any constraints enforced at the database level.
原因是我的 API 密钥中尾随 \r 字符。显然,没有一个步骤进行了关键修剪,并且异常没有得到很好的处理。
The reason was trailing \r character in my API key. Apparently, non of the steps did key trimming and the exception was not processed in a good way.