Hello,
I am following instructions to authenticate a user and was expecting to get an Authentication Hash in the callback URL but it doesn't seem to be there.
My configuration is Ruby 2.0, Rails 4.0 with both omniauth and omniauth-meetup gems.
The user authenticates on Meetup.com with this url:
https://secure.meetup.com/oauth2/authorize?client_id=MEETUP_KEY&response_type=code&redirect_uri=http://localhost:3000/auth/meetup/callbackThe callback method is:
# GET /auth/:provider/callback
def create
user = User.find_or_create_from_auth_hash(request.env['omniauth.auth'])
redirect_to '/'
end
User is able to authenticate and gets redirected. However, request.env['omniauth.auth'] is nil (not there) when I inspect the request headers.
Does anyone have any idea what I may be missing?
Thanks,
Long