Authentication
Dothttp supports basic, digest and certificate auth inherently
For certificate auth docs visit this
Redefining authentication for each request is burden, with dothttp one can extend auth information from base request. check out more information on this here
#
Basic AuthenticationBasic authentication is nothing but setting header
Authorization: <username:password with base64 encoded>
dothttp provides simple way to set basic authentication
Syntax:
basicauth(<username>, <password>)
#
Example:#
Digest AuthenticationDigest authentication is one of most used authentication mechanisms.
Syntax:
digestauth(<username>, <password>)
#
AWS Signature v4 AuthenticationAws signature v4 authentication is used for interacting with amazonaws apis
Syntax:
awsauth(<accessId>, <secretKey>, <service>, <region>)
#
NTLM AuthenticationWindows NT LAN Manager (NTLM) is a challenge-response authentication protocol used to authenticate a client to a resource on an Active Directory domain.
Syntax:
ntlmauth(<username>, <password>)
#
Hawk AuthenticationIt is an authentication scheme for HTTP, built around HMAC digests of requests and responses.
Every authenticated client request has an Authorization header containing a MAC (Message Authentication Code) and some additional metadata, then each server response to authenticated requests contains a Server-Authorization header thatauthenticates the response, so the client is sure it comes from the right server.
Syntax:
hawkauth(<id>, <key>)
(or)
hawkauth(<id>, <key>, <algorithm like sha256...>)