Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for Signature (0.26 sec)

  1. cmd/signature-v4.go

    	// Get signature.
    	newSignature := getSignature(signingKey, formValues.Get("Policy"))
    
    	// Verify signature.
    	if !compareSignatureV4(newSignature, formValues.Get(xhttp.AmzSignature)) {
    		return cred, ErrSignatureDoesNotMatch
    	}
    
    	// Success.
    	return cred, ErrNone
    }
    
    // doesPresignedSignatureMatch - Verify query headers with presigned signature
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. cmd/signature-v4-parser_test.go

    			// validating the extraction/parsing of signature field.
    			if !compareSignatureV4(testCase.expectedAuthField.Signature, parsedAuthField.Signature) {
    				t.Errorf("Test %d: Parsed Signature field mismatch: Expected \"%s\", got \"%s\"", i+1, testCase.expectedAuthField.Signature, parsedAuthField.Signature)
    			}
    
    			// validating the extracted signed headers.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
  3. cmd/signature-v4-utils_test.go

    		{"X-Amz-Content-Sha256", unsignedPayload, "X-Amz-Credential", "", true},
    
    		// Test case - 4.
    		// Enabling PreSigned Signature v4, but X-Amz-Content-Sha256 not set has to be skipped.
    		{"", "", "X-Amz-Credential", "", true},
    
    		// Test case - 5.
    		// Enabling PreSigned Signature v4, but X-Amz-Content-Sha256 set and its not UNSIGNED-PAYLOAD, we shouldn't skip.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  4. fastapi/dependencies/utils.py

        path_param_names = get_path_param_names(path)
        endpoint_signature = get_typed_signature(call)
        signature_params = endpoint_signature.parameters
        dependant = Dependant(
            call=call,
            name=name,
            path=path,
            security_scopes=security_scopes,
            use_cache=use_cache,
        )
        for param_name, param in signature_params.items():
            is_path_param = param_name in path_param_names
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. cmd/post-policy_test.go

    	}
    }
    
    // postPresignSignatureV4 - presigned signature for PostPolicy requests.
    func postPresignSignatureV4(policyBase64 string, t time.Time, secretAccessKey, location string) string {
    	// Get signining key.
    	signingkey := getSigningKey(secretAccessKey, t, location, "s3")
    	// Calculate signature.
    	signature := getSignature(signingkey, policyBase64)
    	return signature
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

    import org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeToken
    import org.jetbrains.kotlin.analysis.api.signatures.KtCallableSignature
    import org.jetbrains.kotlin.analysis.api.signatures.KtFunctionLikeSignature
    import org.jetbrains.kotlin.analysis.api.signatures.KtVariableLikeSignature
    import org.jetbrains.kotlin.analysis.api.symbols.*
    import org.jetbrains.kotlin.analysis.api.types.KtType
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Apr 29 12:48:54 GMT 2024
    - 34.8K bytes
    - Viewed (0)
  7. cmd/auth-handler_test.go

    	type testCase struct {
    		req   *http.Request
    		authT authType
    	}
    	nopCloser := io.NopCloser(io.LimitReader(&nullReader{}, 1024))
    	testCases := []testCase{
    		// Test case - 1
    		// Check for generic signature v4 header.
    		{
    			req: &http.Request{
    				URL: &url.URL{
    					Host:   "127.0.0.1:9000",
    					Scheme: httpScheme,
    					Path:   SlashSeparator,
    				},
    				Header: http.Header{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v2_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	v0 := xl.versions[0]
    
    	// Saved with signature 0xfe, 0x54, 0xbc, 0x2f
    	// Signature must be converted after load.
    	wantSig := [4]byte{0x1e, 0x5f, 0xba, 0x4a}
    	if v0.header.Signature != wantSig {
    		t.Errorf("Wrong signature, want %#v, got %#v", wantSig, v0.header.Signature)
    	}
    	v, err := xl.getIdx(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

         * is somehow changed, then we want to keep the wrapper.
         *
         * Such substitute overrides happen because of inheritance.
         *
         * If the declaration references only its own type parameters, or parameters from the outer declarations, then
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 28 09:06:28 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  10. cmd/auth-handler.go

    	return strings.HasPrefix(r.Header.Get(xhttp.Authorization), jwtAlgorithm)
    }
    
    // Verify if request has AWS Signature Version '4'.
    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 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
Back to top