You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the correct way to generate the signature for requests with query string that has no key=value just a string without "=" sign for example https://domain/path?querystring
The service im connecting with for urls like that returns invalid signature error.
So who is not compliant with the RFC ? the service or the subscriber implementation ?
With one simple modification to the prepareParameters method i got the requests working, I can make a PR but i dont know it would be a valid change.
privatefunctionprepareParameters($data)
{
// Parameters are sorted by name, using lexicographical byte value// ordering. Ref: Spec: 9.1.1 (1).uksort($data, 'strcmp');
foreach ($dataas$key => $value) {
if ($value === null) {
// unset($data[$key]); // current code$data[$key] = ""; // modification needed to make requests with a valid sig
}
}
return$data;
}
The text was updated successfully, but these errors were encountered:
I am also having this issue - I am using RQL queries to filter request results and oauth-subscriber is ignoring my query. In case of url like this http://example.com?eq(foo,bar) part eq(foo,bar) is ignored.
What is the correct way to generate the signature for requests with query string that has no key=value just a string without "=" sign for example https://domain/path?querystring
The service im connecting with for urls like that returns invalid signature error.
So who is not compliant with the RFC ? the service or the subscriber implementation ?
With one simple modification to the prepareParameters method i got the requests working, I can make a PR but i dont know it would be a valid change.
The text was updated successfully, but these errors were encountered: