Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP basic auth, digest auth and Oauth?

Which one of basic auth, digest auth and Oauth should I use for my web application to let users access resources through Restful API calls.

Isn't Oauth the better solution replacing basic and digest auth?

like image 986
ajsie Avatar asked Nov 01 '10 17:11

ajsie


1 Answers

Phil Sturgeon has got a decent eBook (Build APIs You Won't Hate) with a whole chapter dedicated to Authentication. It covers:

  • Basic
  • Digest
  • OAuth 1.0a
  • OAuth 2

I'd highly recommend reading it if you are considering implementing such mechanisms within your RESTful API.

Update Why the downvote?

like image 76
Malachi Avatar answered Oct 23 '22 10:10

Malachi