Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ruby on Rails Rest Api + oAuth

hello dear developers! what are benefits of using rest api + oAuth in Rails 3 ?

where I can find a code examples of authentication (server + client)

Maybe I should use some different authenication ? The main Idea is that clients can buy goods via restfull queries and I should provide the highest level of reliability

like image 782
Fivell Avatar asked Oct 25 '22 18:10

Fivell


1 Answers

Not a direct answer but a slight "redirect": Check out the omniauth gem.

Home: https://github.com/intridea/omniauth

A fork of the main repository, but more up to date right now: https://github.com/benschwarz/omniauth

While I usually don't like gems because they often cause more trouble than benefit authentication code usually does not get better when I write it myself, and this gem is pretty much standard and very widely used.

like image 181
Mörre Avatar answered Oct 27 '22 09:10

Mörre