Omniauth 和Foursquare:uid 为零
我正在使用最后一个omniauth gem 和omniauth-foursquare gem gem 'omniauth-foursquare'
。
当我尝试通过 foursquare 登录时,回调返回:
#<OmniAuth::AuthHash ... provider="foursquare" redirect_uri="blabla" uid=nil>
uid is nil :(
我还在 Twitter 上使用 omniauth-contrib ,在…上使用 omniauth-facebook 。 facebook。这些工作正常,我得到了一个有效的 uid,
你认为这是宝石吗?
I'm using the last omniauth gem, and the omniauth-foursquare gem gem 'omniauth-foursquare'
.
When I try to login via foursquare, the callback returns:
#<OmniAuth::AuthHash ... provider="foursquare" redirect_uri="blabla" uid=nil>
uid is nil :(
I'm also using omniauth-contrib
for twitter, and omniauth-facebook
for... facebook. These work fine, I get a valid uid.
Do you think it's the gem? Any idea what could be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这就是宝石。它缺少 uid 块。它已在此处的代码中修复:https://github.com/brendte/omniauth-foursquare。它还将 foursquare 返回的原始数据添加到额外的哈希中。
Yes, it's the gem. It's missing the uid block. It's fixed in the code here: https://github.com/brendte/omniauth-foursquare. It also adds the raw data returned by foursquare to the extra hash.
发布了新版本 https://rubygems.org/gems/omniauth-foursquare/versions /0.0.4
你可以使用:-)
Released a newer version https://rubygems.org/gems/omniauth-foursquare/versions/0.0.4
You can use :-)