Add server side signaturev4 check, not wired up to the readers yet.

This commit is contained in:
Harshavardhana
2015-07-08 16:54:32 -07:00
parent a904cb5002
commit ec33d79d57
6 changed files with 392 additions and 9 deletions
+17
View File
@@ -309,3 +309,20 @@ type InvalidUploadID struct {
func (e InvalidUploadID) Error() string {
return "Invalid upload id " + e.UploadID
}
// SignatureDoesNotMatch invalid signature
type SignatureDoesNotMatch struct {
SignatureSent string
SignatureCalculated string
}
func (e SignatureDoesNotMatch) Error() string {
return "The request signature we calculated does not match the signature you provided"
}
// MissingDateHeader date header missing
type MissingDateHeader struct{}
func (e MissingDateHeader) Error() string {
return "Missing date header"
}