I am trying to authenticate URL using hamc. I can do the following to verify.My question is how do I parse the URL to extract only part of the URL excluding the hmac parameter. I tried using local variables in vcl but it threw an error. Any suggestions on how to extract the hmac value and URL query parameters as shown below.
if (digest.hmac_md5(“key”, “q1=xxx&q2=yyy”) != “value”)
return (synth(401, digest.hmac_md5(“key”, “http://localhost/zzz/?q1=xxx&q2=yyy”)));
Please sign in to leave a comment.