JoshCheek / miniature-octo-ironman

It's small. It had 8 legs. It sells weapons of mass comprehension to the most eager learner!
4 stars 4 forks source link

Authenticate users via Github #41

Open JoshCheek opened 9 years ago

JoshCheek commented 9 years ago

Part of the Endpoints milestone.


Authenticate a user against Github. I assume some of our 1406ers have done this already, maybe check out their projects to see how they did it, or ping them on Slack to see if they'd be willing to help. There might be a gem for this, or maybe it's some configuration on the normal oauth stuff.

tyrbo commented 9 years ago

Sinatra does come with sessions. See: http://www.sinatrarb.com/faq.html#sessions

I didn't authenticate through Github, but through Twitch.tv. But that was using OmniAuth. Looks like you can use OmniAuth with Sinatra (perhaps? https://github.com/intridea/omniauth/wiki/Sinatra-Example) but would have to play around with it.