DigestAuth Request
GET https://postman-echo.com/digest-auth
Performing a simple GET
request to this endpoint returns status code 401 Unauthorized
with WWW-Authenticate
header containing information to successfully authenticate subsequent requests.
The WWW-Authenticate
header must be processed to extract realm
and nonce
values to hash subsequent requests.
When this request is executed within Qodex, the script attached with this request does the hard work of extracting realm and nonce from the header and set it as global variables named echo_digest_nonce
and echo_digest_realm
.
These variables are re-used in subsequent request for seamless integration of the two requests.
Request Body
[{"name"=>"code", "value"=>"xWnkliVQJURqB2x1", "datatype"=>"string"}, {"name"=>"grant_type", "value"=>"authorization_code", "datatype"=>"string"}, {"name"=>"redirect_uri", "value"=>"https://www.getpostman.com/oauth2/callback", "datatype"=>"string"}, {"name"=>"client_id", "value"=>"abc123", "datatype"=>"string"}, {"name"=>"client_secret", "value"=>"ssh-secret", "datatype"=>"string"}]