Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for signRequestV2 (0.21 sec)

  1. cmd/auth-handler_test.go

    func mustNewSignedV2Request(method string, urlStr string, contentLength int64, body io.ReadSeeker, t *testing.T) *http.Request {
    	req := mustNewRequest(method, urlStr, contentLength, body, t)
    	cred := globalActiveCred
    	if err := signRequestV2(req, cred.AccessKey, cred.SecretKey); err != nil {
    		t.Fatalf("Unable to initialized new signed http request %s", err)
    	}
    	return req
    }
    
    // This is similar to mustNewRequest but additionally the request
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. cmd/server_test.go

    		int64(buffer1.Len()), buffer1, s.accessKey, s.secretKey, s.signer)
    	request.Header.Set("Content-Type", "application/json")
    	if s.signer == signerV2 {
    		c.Assert(err, nil)
    		err = signRequestV2(request, s.accessKey, s.secretKey)
    	}
    	c.Assert(err, nil)
    	// execute the HTTP request for object upload.
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	req.URL.RawQuery = query.Encode()
    
    	// Save signature finally.
    	req.URL.RawQuery += "&Signature=" + url.QueryEscape(signature)
    	return nil
    }
    
    // Sign given request using Signature V2.
    func signRequestV2(req *http.Request, accessKey, secretKey string) error {
    	signer.SignV2(*req, accessKey, secretKey, false)
    	return nil
    }
    
    // Sign given request using Signature V4.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    		if testCase.metadataCopy {
    			reqV2.Header.Set("X-Amz-Metadata-Directive", "COPY")
    		}
    		if testCase.metadataGarbage {
    			reqV2.Header.Set("X-Amz-Metadata-Directive", "Unknown")
    		}
    
    		err = signRequestV2(reqV2, testCase.accessKey, testCase.secretKey)
    		if err != nil {
    			t.Fatalf("Failed to V2 Sign the HTTP request: %v.", err)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top