Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is OAuth irrelevant when HTTPS is used?

I am designing a RESTful API which will always communicate over HTTPS. Is there any reason to use a scheme like OAuth when running over HTTPS? I am particularly interested whether or not aspects like HMAC-signed requests, nonces, and timestamps are useful when the entire communication is encrypted.

It seems like any authentication scheme over HTTPS is sufficient but I just wanted to get a second opinion.

like image 213
John Cromartie Avatar asked Mar 24 '11 14:03

John Cromartie


1 Answers

Well, that's the whole theory behind OAuth 2. Instead of the complicated signature mechanisms of OAuth 1, you just rely on transport-layer security and focus on the authorization piece of the puzzle. The HTTPS protocol does not solve the authorization piece, so you still need OAuth 2 for that.

like image 146
Bob Aman Avatar answered Nov 05 '22 05:11

Bob Aman