Closed breethomas closed 10 years ago
Interesting. Was it broken locally or when you deployed?
I was getting this issue locally when I was just hacking around omniauth.rb
and put my api_key and api_secret directly in the initializer instead of using environment variables. When I updated my .bash_profile
to export ENV['MMF_API_KEY']
and ENV['MMF_API_SECRET']
I was able to get the callback to complete successfully.
I noticed this note in the omniauth-mapmyfitness-oauth2
readme that got me going:
NOTE: The ENV['MMF_API_KEY']
is unsed in an unusual place in this strategy. It must be defined for the library to work.
Hopefully this is just how you're setting your environment variables locally or when you deploy.
@unrealities Hi Tom!
We are using the gem dotenv-rails for exporting the key/secret, however, we inadvertently moved that gem lower in the gem file, below the omniauth-mapmyfitness-oauth2 gem, so it was breaking. Whoops!
Thanks for all your feedback, we were excited to hear your thoughts! :) -L
@LouisaBarrett makes sense. Glad you got it figured out!
@jayzes @mikepack @LouisaBarrett
Jay/Mike. Not sure what we messed up...but we can't get past the MMF auth page. Something goofy in the callback I think.... Here is detailed list of what's happening:
We are using better errors, and here are the values of that initheader and key/value: