Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for parseSignV4 (0.11 sec)

  1. cmd/signature-v4.go

    	// Copy request.
    	req := *r
    
    	// Save authorization header.
    	v4Auth := req.Header.Get(xhttp.Authorization)
    
    	// Parse signature version '4' header.
    	signV4Values, err := parseSignV4(v4Auth, region, stype)
    	if err != ErrNone {
    		return err
    	}
    
    	// Extract all the signed headers along with its values.
    	extractedSignedHeaders, errCode := extractSignedHeaders(signV4Values.SignedHeaders, r)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/signature-v4-parser_test.go

    				Signature:     "abcd",
    			},
    			expectedErrCode: ErrNone,
    		},
    	}
    
    	for i, testCase := range testCases {
    		parsedAuthField, actualErrCode := parseSignV4(testCase.inputV4AuthStr, "", "s3")
    
    		if testCase.expectedErrCode != actualErrCode {
    			t.Fatalf("Test %d: Expected the APIErrCode to be %d, got %d", i+1, testCase.expectedErrCode, actualErrCode)
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  3. cmd/streaming-signature-v4.go

    	// Copy request.
    	req := *r
    
    	// Save authorization header.
    	v4Auth := req.Header.Get(xhttp.Authorization)
    
    	// Parse signature version '4' header.
    	signV4Values, errCode := parseSignV4(v4Auth, globalSite.Region(), serviceS3)
    	if errCode != ErrNone {
    		return cred, "", "", time.Time{}, errCode
    	}
    
    	// Payload streaming.
    	payload := streamingContentSHA256
    	if trailers {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top