InterviewSolution
Saved Bookmarks
| 1. |
What do you mean by digest authentication? |
|
Answer» RESTful web services can be authenticated in MANY ways, but advanced authentication methods include digest authentication. It applies a hash FUNCTION to username, password, HTTP method, and URI in order to send credentials in encrypted form. It generates more complex cryptographic results by using the hashing technique which is not EASY to decode. Syntax: Hash1=MD5(username:realm:password) Hash2=MD5(method:digestURI) response=MD5(Hash1:nonce:nonceCount:cnonce:QOP:Hash2) //Example, this got generated by running this example Authorization: Digest username="TestAdmin", realm="admin-digest-realm", nonce="MTYwMDEwMTUyMDM4OToxM2M1Y2I4MGFjMjk4OGI1ODQzZjc3NDUzOGFlMjZjYw==", uri="/admin/hello?name=User", response="2f080edbec53be2bdf3853d477e4a543", qop=auth, nc=00000002, cnonce="11ecd9bf947dbcf4" |
|