https://github.com/Desire2Learn-Valence/valence-sdk-javascript/blob/master/lib/valence.js#L355 compared to php https://github.com/Desire2Learn-Valence/valence-sdk-php/blob/master/lib/D2LUserContext.php#L110 The passed in path should have it's query parameters stripped before being used for computing the signature