Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for urlencode (0.16 sec)

  1. cmd/signature-v4-parser.go

    	Date    time.Time
    	Expires time.Duration
    }
    
    // Parses signature version '4' query string of the following form.
    //
    //	querystring = X-Amz-Algorithm=algorithm
    //	querystring += &X-Amz-Credential= urlencode(accessKey + '/' + credential_scope)
    //	querystring += &X-Amz-Date=date
    //	querystring += &X-Amz-Expires=timeout interval
    //	querystring += &X-Amz-SignedHeaders=signed_headers
    //	querystring += &X-Amz-Signature=signature
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  2. internal/config/identity/openid/providercfg.go

    	}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, p.DiscoveryDoc.UserInfoEndpoint, nil)
    	if err != nil {
    		return nil, err
    	}
    
    	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
    	if accessToken != "" {
    		req.Header.Set("Authorization", "Bearer "+accessToken)
    	}
    
    	client := &http.Client{
    		Transport: transport,
    	}
    
    	resp, err := client.Do(req)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. cmd/api-utils.go

    		return false
    	}
    
    	switch c {
    	case '-', '_', '.', '/', '*':
    		return false
    	}
    	return true
    }
    
    // s3URLEncode is based on Golang's url.QueryEscape() code,
    // while considering some S3 exceptions:
    //   - Avoid encoding '/' and '*'
    //   - Force encoding of '~'
    func s3URLEncode(s string) string {
    	spaceCount, hexCount := 0, 0
    	for i := 0; i < len(s); i++ {
    		c := s[i]
    		if shouldEscape(c) {
    			if c == ' ' {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. internal/config/identity/openid/provider/keycloak.go

    	req, err := http.NewRequest(http.MethodPost, k.oeConfig.TokenEndpoint, strings.NewReader(values.Encode()))
    	if err != nil {
    		return err
    	}
    	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
    
    	resp, err := k.client.Do(req)
    	if err != nil {
    		return err
    	}
    	defer resp.Body.Close()
    
    	var accessToken Token
    	if err = json.NewDecoder(resp.Body).Decode(&accessToken); err != nil {
    		return err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 4.6K bytes
    - Viewed (0)
  5. docs/sts/client-grants.go

    	req, err := http.NewRequest(http.MethodPost, idpEndpoint, strings.NewReader(data.Encode()))
    	if err != nil {
    		return nil, err
    	}
    	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
    	req.SetBasicAuth(clientID, clientSecret)
    	t := &http.Transport{
    		TLSClientConfig: &tls.Config{
    			InsecureSkipVerify: true,
    		},
    	}
    	hclient := http.Client{
    		Transport: t,
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  6. cmd/sts-handlers.go

    	// Assume roles with no JWT, handles AssumeRole.
    	stsRouter.Methods(http.MethodPost).MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) bool {
    		ctypeOk := wildcard.MatchSimple("application/x-www-form-urlencoded*", r.Header.Get(xhttp.ContentType))
    		authOk := wildcard.MatchSimple(signV4Algorithm+"*", r.Header.Get(xhttp.Authorization))
    		noQueries := len(r.URL.RawQuery) == 0
    		return ctypeOk && authOk && noQueries
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  7. cmd/utils.go

    	if err != nil {
    		return "", fmt.Errorf("new request err (/login): %v", err)
    	}
    	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
    	_, err = dexClient.Do(req)
    	if err != nil {
    		return "", fmt.Errorf("post form err: %v", err)
    	}
    	// fmt.Printf("resp: %#v %#v\n", resp.StatusCode, resp.Header)
    	// bodyBuf, err := io.ReadAll(resp.Body)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top