tsibelman / aws-signer-v4-dot-net

Sign HttpRequestMessage using AWS Signature v4 using request information and credentials.
Apache License 2.0
72 stars 27 forks source link

Adding support ClockSkew #22

Closed huybuidac closed 4 years ago

huybuidac commented 4 years ago

[Problem] When device time is difference with server time, server will response InvalidSignatureException

[Solution] Adding timeOffset inorder to correct request time.

[Reference] https://aws.amazon.com/blogs/developer/clock-skew-correction/ https://github.com/aws/aws-sdk-net/issues/393#issuecomment-319440767