Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isRequestPresignedSignatureV4 (0.2 sec)

  1. cmd/auth-handler.go

    	return (!strings.HasPrefix(r.Header.Get(xhttp.Authorization), signV4Algorithm) &&
    		strings.HasPrefix(r.Header.Get(xhttp.Authorization), signV2Algorithm))
    }
    
    // Verify if request has AWS PreSign Version '4'.
    func isRequestPresignedSignatureV4(r *http.Request) bool {
    	_, ok := r.Form[xhttp.AmzCredential]
    	return ok
    }
    
    // Verify request has AWS PreSign Version '2'.
    func isRequestPresignedSignatureV2(r *http.Request) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. cmd/auth-handler_test.go

    		}
    		q := inputReq.URL.Query()
    		q.Add(testCase.inputQueryKey, testCase.inputQueryValue)
    		inputReq.URL.RawQuery = q.Encode()
    		inputReq.ParseForm()
    
    		actualResult := isRequestPresignedSignatureV4(inputReq)
    		if testCase.expectedResult != actualResult {
    			t.Errorf("Test %d: Expected the result to `%v`, but instead got `%v`", i+1, testCase.expectedResult, actualResult)
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. cmd/generic-handlers.go

    func hasMultipleAuth(r *http.Request) bool {
    	authTypeCount := 0
    	for _, hasValidAuth := range []func(*http.Request) bool{
    		isRequestSignatureV2, isRequestPresignedSignatureV2,
    		isRequestSignatureV4, isRequestPresignedSignatureV4,
    		isRequestJWT, isRequestPostPolicySignatureV4,
    	} {
    		if hasValidAuth(r) {
    			authTypeCount++
    		}
    	}
    	return authTypeCount > 1
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top