Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for signedHeaders (0.07 sec)

  1. cmd/signature-v4_test.go

    				"X-Amz-Algorithm":     signV4Algorithm,
    				"X-Amz-Date":          now.Format(iso8601Format),
    				"X-Amz-Expires":       "60",
    				"X-Amz-Signature":     "badsignature",
    				"X-Amz-SignedHeaders": "host;x-amz-content-sha256;x-amz-date",
    				"X-Amz-Credential":    fmt.Sprintf(credentialTemplate, "Z7IXGOO6BZ0REAN1Q26I", now.Format(yyyymmdd), "us-west-1"),
    			},
    			region:   "us-west-1",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. cmd/signature-v4-utils.go

    // extractSignedHeaders extract signed headers from Authorization header
    func extractSignedHeaders(signedHeaders []string, r *http.Request) (http.Header, APIErrorCode) {
    	reqHeaders := r.Header
    	reqQueries := r.Form
    	// find whether "host" is part of list of signed headers.
    	// if not return ErrUnsignedHeaders. "host" is mandatory.
    	if !slices.Contains(signedHeaders, "host") {
    		return nil, ErrUnsignedHeaders
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	//  <HTTPMethod>\n
    	//  <CanonicalURI>\n
    	//  <CanonicalQueryString>\n
    	//  <CanonicalHeaders>\n
    	//  <SignedHeaders>\n
    	//  <HashedPayload>
    	//
    	canonicalRequest := strings.Join([]string{
    		req.Method,
    		canonicalURI,
    		req.URL.RawQuery,
    		canonicalHeaders,
    		signedHeaders,
    		hashedPayload,
    	}, "\n")
    
    	// Get scope.
    	scope := strings.Join([]string{
    		currTime.Format(yyyymmdd),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  4. internal/http/headers.go

    	AmzContentSha256        = "X-Amz-Content-Sha256"
    	AmzDate                 = "X-Amz-Date"
    	AmzAlgorithm            = "X-Amz-Algorithm"
    	AmzExpires              = "X-Amz-Expires"
    	AmzSignedHeaders        = "X-Amz-SignedHeaders"
    	AmzSignature            = "X-Amz-Signature"
    	AmzCredential           = "X-Amz-Credential"
    	AmzSecurityToken        = "X-Amz-Security-Token"
    	AmzDecodedContentLength = "X-Amz-Decoded-Content-Length"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:31:56 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. cmd/api-errors.go

    		Description:    "Signature header missing Signature field.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMissingSignHeadersTag: {
    		Code:           "InvalidArgument",
    		Description:    "Signature header missing SignedHeaders field.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMalformedExpires: {
    		Code:           "AuthorizationQueryParametersError",
    		Description:    "X-Amz-Expires should be a number",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top