Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for formValues (0.25 sec)

  1. cmd/signature-v4.go

    }
    
    // Check to see if Policy is signed correctly.
    func doesPolicySignatureMatch(formValues http.Header) (auth.Credentials, APIErrorCode) {
    	// For SignV2 - Signature field will be valid
    	if _, ok := formValues[xhttp.AmzSignatureV2]; ok {
    		return doesPolicySignatureV2Match(formValues)
    	}
    	return doesPolicySignatureV4Match(formValues)
    }
    
    // compareSignatureV4 returns true if and only if both signatures
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		return
    	}
    
    	formValues.Set("Bucket", bucket)
    	if fileName != "" && strings.Contains(formValues.Get("Key"), "${filename}") {
    		// S3 feature to replace ${filename} found in Key form field
    		// by the filename attribute passed in multipart
    		formValues.Set("Key", strings.ReplaceAll(formValues.Get("Key"), "${filename}", fileName))
    	}
    	object := trimLeadingSlash(formValues.Get("Key"))
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  3. cmd/postpolicyform_test.go

    	for i, tt := range testCases {
    		formValues := make(http.Header)
    		formValues.Set("Bucket", tt.Bucket)
    		formValues.Set("Key", tt.Key)
    		formValues.Set("Content-Type", tt.ContentType)
    		formValues.Set("X-Amz-Date", tt.XAmzDate)
    		formValues.Set("X-Amz-Meta-Uuid", tt.XAmzMetaUUID)
    		formValues.Set("X-Amz-Algorithm", tt.XAmzAlgorithm)
    		formValues.Set("X-Amz-Credential", tt.XAmzCredential)
    		if tt.Expired {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  4. cmd/postpolicyform.go

    func checkPostPolicy(formValues http.Header, postPolicyForm PostPolicyForm) error {
    	// Check if policy document expiry date is still not reached
    	if !postPolicyForm.Expiration.After(UTCNow()) {
    		return fmt.Errorf("Invalid according to Policy: Policy expired")
    	}
    	// check all formValues appear in postPolicyForm or return error. #https://github.com/minio/minio/issues/17391
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  5. cmd/signature-v2.go

    func doesPolicySignatureV2Match(formValues http.Header) (auth.Credentials, APIErrorCode) {
    	accessKey := formValues.Get(xhttp.AmzAccessKeyID)
    
    	r := &http.Request{Header: formValues}
    	cred, _, s3Err := checkKeyValid(r, accessKey)
    	if s3Err != ErrNone {
    		return cred, s3Err
    	}
    	policy := formValues.Get("Policy")
    	signature := formValues.Get(xhttp.AmzSignatureV2)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  6. cmd/signature-v2_test.go

    	}
    	for i, test := range testCases {
    		formValues := make(http.Header)
    		formValues.Set("Awsaccesskeyid", test.accessKey)
    		formValues.Set("Signature", test.signature)
    		formValues.Set("Policy", test.policy)
    		_, errCode := doesPolicySignatureV2Match(formValues)
    		if errCode != test.errCode {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 8K bytes
    - Viewed (0)
  7. docs/iam/identity-manager-plugin.go

    		MaxValiditySeconds: 3600,
    		Claims: map[string]interface{}{
    			"groups": []string{"databases"},
    		},
    	},
    }
    
    func mainHandler(w http.ResponseWriter, r *http.Request) {
    	token := r.FormValue("token")
    	if token == "" {
    		writeErrorResponse(w, errors.New("token parameter not given"))
    		return
    	}
    
    	rsp, ok := tokens[token]
    	if !ok {
    		w.WriteHeader(http.StatusForbidden)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

                    return;
                }
                params.put("onelogin.saml2." + key.substring(SAML_PREFIX.length()), e.getValue());
            });
            return new SettingsBuilder().fromValues(params).build();
        }
    
        @Override
        public LoginCredential getLoginCredential() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
                if (logger.isDebugEnabled()) {
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg net/http, method (*Request) Cookies() []*Cookie
    pkg net/http, method (*Request) FormFile(string) (multipart.File, *multipart.FileHeader, error)
    pkg net/http, method (*Request) FormValue(string) string
    pkg net/http, method (*Request) MultipartReader() (*multipart.Reader, error)
    pkg net/http, method (*Request) ParseForm() error
    pkg net/http, method (*Request) ParseMultipartForm(int64) error
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top