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?
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.
Released a newer version https://rubygems.org/gems/omniauth-foursquare/versions/0.0.4
You can use :-)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.