5

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

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

thanks , sorry but I updated my question, have you something to add ?
The omniauth Wiki has examples - for omniauth, of course. I guess you may have to be more specific, reading the question what I think of is "normal" session management on websites (logged in as some user or not). For that there are examples (github.com/intridea/omniauth/wiki).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.