Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parsePreSignV4 (0.24 sec)

  1. cmd/signature-v4.go

    func doesPresignedSignatureMatch(hashedPayload string, r *http.Request, region string, stype serviceType) APIErrorCode {
    	// Copy request
    	req := *r
    
    	// Parse request query string.
    	pSignValues, err := parsePreSignV4(req.Form, region, stype)
    	if err != ErrNone {
    		return err
    	}
    
    	cred, _, s3Err := checkKeyValid(r, pSignValues.Credential.accessKey)
    	if s3Err != ErrNone {
    		return s3Err
    	}
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/signature-v4-parser_test.go

    		for j := 0; j < len(testCase.inputQueryKeyVals)-1; j += 2 {
    			inputQuery.Set(testCase.inputQueryKeyVals[j], testCase.inputQueryKeyVals[j+1])
    		}
    		// call the function under test.
    		parsedPreSign, actualErrCode := parsePreSignV4(inputQuery, "", serviceS3)
    		if testCase.expectedErrCode != actualErrCode {
    			t.Fatalf("Test %d: Expected the APIErrCode to be %d, got %d", i+1, testCase.expectedErrCode, actualErrCode)
    		}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top