Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SignV4 (0.27 sec)

  1. cmd/object-lambda-handlers_test.go

    			req.Header.Set("X-Amz-Date", time.Now().UTC().Format("20060102T150405Z"))
    			sum := sha256.Sum256(body)
    			req.Header.Set("X-Amz-Content-Sha256", hex.EncodeToString(sum[:]))
    			req = signer.SignV4(*req, credentials.AccessKey, credentials.SecretKey, "", "us-east-1")
    
    			rec := httptest.NewRecorder()
    			api := objectAPIHandlers{
    				ObjectAPI: func() ObjectLayer {
    					return obj
    				},
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jul 18 21:56:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. cmd/post-policy_test.go

    	// Add content length condition, only accept content sizes of a given length.
    	contentLengthCondStr := `["content-length-range", 1024, 1048576]`
    	// Add the algorithm condition, only accept AWS SignV4 Sha256.
    	algorithmConditionStr := `["eq", "$x-amz-algorithm", "AWS4-HMAC-SHA256"]`
    	// Add the date condition, only accept the current date.
    	dateConditionStr := fmt.Sprintf(`["eq", "$x-amz-date", "%s"]`, t.Format(iso8601DateFormat))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users_test.go

    	}
    
    	req.ContentLength = int64(len(buf))
    	sum := sha256.Sum256(buf)
    	req.Header.Set("X-Amz-Content-Sha256", hex.EncodeToString(sum[:]))
    	req.Body = io.NopCloser(bytes.NewReader(buf))
    	req = signer.SignV4(*req, accessKey, secretKey, "", "")
    
    	// 3.1 Execute the request.
    	resp, err := s.TestSuiteCommon.client.Do(req)
    	if err != nil {
    		c.Fatalf("unexpected request err: %v", err)
    	}
    	if resp.StatusCode != 200 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 47.4K bytes
    - Viewed (0)
Back to top