Omniauth 和Foursquare:uid 为零

发布于 2024-12-18 19:38:53 字数 379 浏览 5 评论 0原文

我正在使用最后一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

秋意浓 2024-12-25 19:38:53

是的,这就是宝石。它缺少 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文