Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isRequestPostPolicySignatureV4 (0.19 sec)

  1. cmd/auth-handler.go

    func isRequestPresignedSignatureV2(r *http.Request) bool {
    	_, ok := r.Form[xhttp.AmzAccessKeyID]
    	return ok
    }
    
    // Verify if request has AWS Post policy Signature Version '4'.
    func isRequestPostPolicySignatureV4(r *http.Request) bool {
    	mediaType, _, err := mime.ParseMediaType(r.Header.Get(xhttp.ContentType))
    	if err != nil {
    		return false
    	}
    	return mediaType == "multipart/form-data" && r.Method == http.MethodPost
    }
    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/api-router.go

    			HandlerFunc(s3APIMiddleware(api.HeadBucketHandler))
    		// PostPolicy
    		router.Methods(http.MethodPost).
    			MatcherFunc(func(r *http.Request, _ *mux.RouteMatch) bool {
    				return isRequestPostPolicySignatureV4(r)
    			}).
    			HandlerFunc(s3APIMiddleware(api.PostPolicyBucketHandler, traceHdrsS3HFlag))
    		// DeleteMultipleObjects
    		router.Methods(http.MethodPost).
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 15:25:16 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. cmd/generic-handlers.go

    	authTypeCount := 0
    	for _, hasValidAuth := range []func(*http.Request) bool{
    		isRequestSignatureV2, isRequestPresignedSignatureV2,
    		isRequestSignatureV4, isRequestPresignedSignatureV4,
    		isRequestJWT, isRequestPostPolicySignatureV4,
    	} {
    		if hasValidAuth(r) {
    			authTypeCount++
    		}
    	}
    	return authTypeCount > 1
    }
    
    // requestValidityHandler validates all the incoming paths for
    // any malicious requests.
    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