Log in or register to post comments

What is the correct signature format?

October 31, 2016 - 10:48am #1

Hello,

I was wonder if anyone can explain to me what the correct formatting for the signature string should be.

Signature = Base64(HMAC-SHA1(server_secret_key, StringToSign ) ) ;

StringToSign =

  HTTP-Verb + "\n" +

  Content-MD5 + "\n" +

  Content-Type + "\n" +

  Date + "\n" +

  Request-Path;

Based on the example would these be the correct input for a GET request?

HTTP-Verb = "GET"

Content-MD5 = "d41d8cd98f00b204e9800998ecf8427e"

Content-Type = ""

Date = "Sun, 22 Apr 2012 08:49:37 GMT"

Request-Path = "https://vws.vuforia.com/targets/{target_id}"

Log in or register to post comments