scotthovestadt / gigya

Gigya JavaScript REST SDK
MIT License
37 stars 62 forks source link

Gigya error 403003 when sending requests #1

Closed steven-indiloop closed 8 years ago

steven-indiloop commented 9 years ago

When I try to call the servers, using NotifyLogin, I get the error :

403003 Invalid request signature The request is not signed with a valid signature. Please refer to Signing requests for more details.

I got a response from Gigya, stating: " It's likely because the timestamp on the server is off.

Easy solution: when constructing the Gigya object, pass "true" as the 3rd parameter to use HTTPS mode (which doesn't require a signature).

var gigya = new Giga('apiKey', 'secret', true); "

When I add the 3rd param 'true', as recommended, Gigya behaves properly.

This should, however, work in both configurations, which is what this bug is about.

danzaner commented 8 years ago

@steven-indiloop Thank you!!

scotthovestadt commented 8 years ago

Usually this error happens when the timestamp on your server is out of sync with Gigya's server. I'll adjust the default to be to use HTTPS.

scotthovestadt commented 8 years ago

Done, published to NPM as v0.0.10.