despo / issuehub.io

Find open source issues to work on! (domain update)
http://issuehub.pro
MIT License
261 stars 174 forks source link

Configuring OAuth #31

Open steverob opened 10 years ago

steverob commented 10 years ago

Hi. This is a pretty simple(silly) question. But Im not able to properly configure GitHub OAuth and run the app locally.

I have created an app on Github.

Ive set homepage as: http://localhost:9292 Auth callback as: http://localhost:9292/auth/github/callback

And I have set the GITHUB_KEY, GITHUB_SECRET, KOBOL_DOMAIN -> localhost:9292 and KOBOL_SECRET

Now when I run the app and click login with github, it takes me to Github asks for authorization and then it does the redirect back to my app and I get OmniAuth::Strategies::OAuth2::CallbackError at /auth/github/callback.

to be precise: ERROR -- omniauth: (github) Authentication failure! invalid_credentials: OmniAuth::Strategies::OAuth2::CallbackError, OmniAuth::Strategies::OAuth2::CallbackError

I know Im missing something! Just cant figure out what. Could you please help me out?