I am building a restful web services. My requirement is that I have to provide authentication for accessing the webservices.
First I tried with basic authentication. Which is working fine, but somewhere I read Digest authentication is more secure so I implemented it.
After some days we started implementing keyed-HMAC authentication like Amazon webservices.
In all three ways we are sending requests over HTTP either encoded or high encryption.
I read many articles saying HMAC is more secure but I couldn't exactly get it how it is more secured. If some one can get a hold of the URL I am sending. All three methods will be useless. As they have all the details to access my webservices. Or else all three would be equally safe. Why is HMAC safer?
If I send the request through HTTPS then all are having the same safety.
Is there any other way to do it? Please share your knowledge on it. I am very much confused.