User bio
404 bio not found
Member since Mar 11, 2016
Posts:
João has not published any posts yet.
Replies:

Hi Cristiano,

With some small changes, your code works for me:

Your comments on how to test should read:

/// Do TestDigest^HC.Debug("postman", "password", "/digest-auth", "postman-echo.com", 80)
/// Do TestDigest^HC.Debug("usuario", "senha", "/digest-auth/auth/usuario/senha/MD5", "httpbin.org", 80)

Change the line:

Set cnonce = $$HashValue($Horolog,1)

To:

Set cnonce = $$HashValue(+$Horolog)

After this line:

Set digestResponse = $Replace(digestResponse, "*", cnonce, 1, 1)

Add the following code:

// Opaque
Set opaque = $$GetHeaderVar(authenticationData, "opaque")
If opaque '= ""
{
Set digestResponse = digestResponse _ ",opaque=""" _ opaque _ """"
}

Hope this helps!

Certifications & Credly badges:
João has no Certifications & Credly badges yet.
Global Masters badges:
João has no Global Masters badges yet.
Followers:
Following:
João has not followed anybody yet.