How to sign a request for put object in Object storage



I’m trying to put object in object storage direct from browser side using s3.getSignedUrl method of s3 javascript sdk.
It works fine with amazon s3 following this tuto [](http://Heroku tuto).
When i change credentials and endpoints with object storage credentials i have this error.

The request signature we calculated does not match the signature you provided. Check your key and signing method.
Is it a problem with signature version v4 vs v2 ?