Closed travist closed 10 years ago
Thank you for this improvement. I think - it will be better to make this feature config-depended. Because in most cases request signing is not needed. I will add config for feature to the next version.
Just pushed changes. Added request signing feature (but config-depended). For using this feature now you can set signRequestEnabled property to true value, and redefine singProvider method as you want (with Ajax request, for example).
I am working on interfacing this with Drupal file services. They just recently made a change to where every request must be signed before it can be sent to the server with an Authentication token to stop XSRF. When they made this change, the file uploads stopped working. I made a change to your library that allows a derived class to sign a request before it is sent out, and then properly decode the response when it comes back...
This PR adds this ability. I appreciate this library.