Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isRequestSignatureV2 (0.08 sec)

  1. cmd/auth-handler.go

    func isRequestSignatureV4(r *http.Request) bool {
    	return strings.HasPrefix(r.Header.Get(xhttp.Authorization), signV4Algorithm)
    }
    
    // Verify if request has AWS Signature Version '2'.
    func isRequestSignatureV2(r *http.Request) bool {
    	return (!strings.HasPrefix(r.Header.Get(xhttp.Authorization), signV4Algorithm) &&
    		strings.HasPrefix(r.Header.Get(xhttp.Authorization), signV2Algorithm))
    }
    
    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/generic-handlers.go

    	}
    	return false
    }
    
    // Check if client is sending a malicious request.
    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++
    		}
    	}
    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