ovh / node-ovh

Node.js wrapper for the OVH APIs
http://ovh.github.io/node-ovh
Other
129 stars 27 forks source link

X-Ovh-Signature only sent to /auth #16

Open Haakjvork opened 7 years ago

Haakjvork commented 7 years ago

Requests are not signed because of Line 366 in ovh.es5.js : if (path.indexOf('/auth') < 0) {

That 'if' shouldn't exist at all, right?

tuarrep commented 7 years ago

@Haakjvork Nope it's the contrary If /auth isn't in path path.indexOf('/auth') should return -1 so the condition is valid. Thus all requests are signed except ones corresponding to /auth