News for hackers. Stuff that matters.
Re:OAuth and API Providers: Come on guys. by purephase on Tuesday July 24, 2012 @12:26PM (#4286355)
I find with Devise and Omniauth it works like magic. rbates has some excellent Railscasts on the process as well.

I agree with the main thrust of the argument though. OAuth providers do not make it as easy as they should. The point about the buttons is spot on. I've had some good success with the buttons provided here:

http://nicolasgallagher.com/lab/css3-social-signin-buttons/

Re:OAuth and API Providers: Come on guys. by thinkbohemian on Tuesday July 24, 2012 @12:35PM (#4286404)
Omniauth is for implementing an OAuth client, and it's great... but, that's the other side of this coin.

There are very few good provider libraries out there, making it harder to stick to standards. People who want to provide an API shouldn't have to re-invent the wheel every time.

Re:OAuth and API Providers: Come on guys. by Judson on Tuesday July 24, 2012 @12:47PM (#4286481)
I have found that doorkeeper[0] is pretty good and the setup is a breeze.

[0]: https://github.com/applicake/doorkeeper/

Re:OAuth and API Providers: Come on guys. by thinkbohemian on Tuesday July 24, 2012 @01:08PM (#4286638)
I like doorkeeper as well. Opro doesn't currently support any other backends other than ActiveRecord, so if you're using mongo you would need to use doorkeeper.

I started writing opro before DK was out in the wild. There were some things I had in opro that weren't in DK so I decided to keep developing it.

Last time I checked here are some differences:

- Deals with CSRF protected resources automatically

- Works with your login system (like devise), not around it. No special casing or configuration is needed

- Comes with built in docs.

- Comes with built in test controller

You can play around with it here: http://opro-demo.herokuapp.com/.

Re:OAuth and API Providers: Come on guys. by knewter on Wednesday July 25, 2012 @01:30AM (#4289527)
<3 doorkeeper. Using it to make one of our open source apps - http://github.com/isotope11/xrono - an oauth provider to support an oauth sso flow inside of apps we've built for internal use regularly. It took an hour one night to build the provider, and maybe an hour to build the omniauth provider gem and integrate it into an app.

P.S. - it also took like six hours of banging my head against a wall for unrelated oauth-related problems, but not DK's fault.

Re:OAuth and API Providers: Come on guys. by bmelton on Tuesday July 24, 2012 @02:12PM (#4287083)
I've also open sourced a set of (incomplete) social buttons as well. Do as you would with them, they're MIT-licensed, and while the set is incomplete, the PSD is included.

Enjoy.

https://github.com/bmelton/Social-Login-Buttons