Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for doesPresignedSignatureMatch (0.19 sec)

  1. cmd/signature-v4.go

    		return cred, ErrSignatureDoesNotMatch
    	}
    
    	// Success.
    	return cred, ErrNone
    }
    
    // doesPresignedSignatureMatch - Verify query headers with presigned signature
    //   - http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html
    //
    // returns ErrNone if the signature matches.
    func doesPresignedSignatureMatch(hashedPayload string, r *http.Request, region string, stype serviceType) APIErrorCode {
    	// Copy request
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/signature-v4_test.go

    		// Do the same for the headers.
    		for key, value := range testCase.headers {
    			req.Header.Set(key, value)
    		}
    
    		// parse form.
    		req.ParseForm()
    
    		// Check if it matches!
    		err := doesPresignedSignatureMatch(payloadSHA256, req, testCase.region, serviceS3)
    		if err != testCase.expected {
    			t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(err))
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. cmd/auth-handler.go

    	sha256sum := getContentSha256Cksum(r, stype)
    	switch {
    	case isRequestSignatureV4(r):
    		return doesSignatureMatch(sha256sum, r, region, stype)
    	case isRequestPresignedSignatureV4(r):
    		return doesPresignedSignatureMatch(sha256sum, r, region, stype)
    	default:
    		return ErrAccessDenied
    	}
    }
    
    // Verify if request has valid AWS Signature Version '4'.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top