Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which library would provide the easiest OAuth 2.0 authentication for Sinatra

I'm going to implement a simple REST API wrapper around a service and would like to use Ruby with Sinatra for this task.
The Idea is to have users authenticate / sign requests using two-legged OAuth (2.0).

Should I try to use an authentication framework like warden and an addtional oauth 2.0 addon (e.g. warden-oauth2) or should I use a rack based solution like rack-oauth2-server. The rack based approach seems to rely on MongoDB which is ok, but I'd rather minimize the dependencies.

Cheers,
Marc

like image 564
Marc Seeger Avatar asked Jan 08 '12 18:01

Marc Seeger


1 Answers

Checkout oauth2-provider. Another popular option is doorkeeper (rails only).

like image 174
NARKOZ Avatar answered Sep 19 '22 14:09

NARKOZ