mojoconf / MCT

nothing to see here yet, move along
7 stars 1 forks source link

Oauth2 with GitHub #22

Closed jhthorsen closed 9 years ago

jhthorsen commented 9 years ago

Integration with Github instead of Eventbrite.

jberger commented 9 years ago

It looks good to me, is this something I can test?

jberger commented 9 years ago

put it another way, do we have a registered application and keys/secrets?

jhthorsen commented 9 years ago

Yes and no.

We have an application: https://github.com/organizations/mojoconf/settings/applications

But you can't test with that, because of the nature of OAuth2: You need to have a valid redirect_uri to make it safe.

We could on the other hand register a new application, which has "Authorization callback URL" set to http://localhost:3000/connect.

jhthorsen commented 9 years ago

Yeah, that worked:

Do not start the application with MCT_MOCK=1

jhthorsen commented 9 years ago

Btw: MCT_MOCK=1 morbo ... will enable you to test it with local mocked date, meaning it does not require integration with github.com

jberger commented 9 years ago

assuming actually functions I give it a :+1: for merge, @jhthorsen if you are confident then go ahead. I don't have time to actually test it currently, but this is necessary for other work, so do as you see fit.

jhthorsen commented 9 years ago

Thanks! I've tested it locally, so I'm pretty confident it works :smile_cat: