Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for expires (0.16 sec)

  1. cmd/signature-v2_test.go

    		},
    		// (3) Should give an expired request if it has expired.
    		{
    			queryParams: map[string]string{
    				"Expires":        "60",
    				"Signature":      "badsignature",
    				"AWSAccessKeyId": accessKey,
    			},
    			expected: ErrExpiredPresignRequest,
    		},
    		// (4) Should error when the signature does not match.
    		{
    			queryParams: map[string]string{
    				"Expires":        fmt.Sprintf("%d", now.Unix()+60),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 8K bytes
    - Viewed (0)
  2. cmd/signature-v2.go

    		canonicalHeaders += "\n"
    	}
    
    	date := expires // Date is set to expires date for presign operations.
    	if date == "" {
    		// If expires date is empty then request header Date is used.
    		date = headers.Get(xhttp.Date)
    	}
    
    	// From the Amazon docs:
    	//
    	// StringToSign = HTTP-Verb + "\n" +
    	// 	 Content-Md5 + "\n" +
    	//	 Content-Type + "\n" +
    	//	 Date/Expires + "\n" +
    	//	 CanonicalizedProtocolHeaders +
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  3. docs/sts/client_grants/__init__.py

                creds = json.loads(response.data)
    
                query = {}
                query['Action'] = 'AssumeRoleWithClientGrants'
                query['Token'] = creds['access_token']
                query['DurationSeconds'] = creds['expires_in']
                query['Version'] = '2011-06-15'
    
                query_components = []
                for key in query:
                    if query[key] is not None:
    Python
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 4.6K bytes
    - Viewed (1)
  4. internal/config/identity/openid/provider/keycloak.go

    	"errors"
    	"fmt"
    	"net/http"
    	"net/url"
    	"path"
    	"strings"
    	"sync"
    )
    
    // Token - parses the output from IDP id_token.
    type Token struct {
    	AccessToken string `json:"access_token"`
    	Expiry      int    `json:"expires_in"`
    }
    
    // KeycloakProvider implements Provider interface for KeyCloak Identity Provider.
    type KeycloakProvider struct {
    	sync.Mutex
    
    	oeConfig DiscoveryDoc
    	client   http.Client
    	adminURL string
    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. internal/config/cache/remote.go

    		w.Header().Set(xhttp.LastModified, oi.ModTime.UTC().Format(http.TimeFormat))
    	}
    
    	if oi.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + oi.ETag + "\""}
    	}
    
    	if oi.Expires != "" {
    		w.Header().Set(xhttp.Expires, oi.Expires)
    	}
    
    	if oi.CacheControl != "" {
    		w.Header().Set(xhttp.CacheControl, oi.CacheControl)
    	}
    
    	statusCode()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  6. cmd/signature-v4-parser.go

    	}
    
    	// Save expires in native time.Duration.
    	preSignV4Values.Expires, e = time.ParseDuration(query.Get(xhttp.AmzExpires) + "s")
    	if e != nil {
    		return psv, ErrMalformedExpires
    	}
    
    	if preSignV4Values.Expires < 0 {
    		return psv, ErrNegativeExpires
    	}
    
    	// Check if Expiry time is less than 7 days (value in seconds).
    	if preSignV4Values.Expires.Seconds() > 604800 {
    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)
  7. cmd/signature-v4_test.go

    			},
    			region:   region,
    			expected: ErrUnsignedHeaders,
    		},
    		// (4) Should give an expired request if it has expired.
    		{
    			queryParams: map[string]string{
    				"X-Amz-Algorithm":      signV4Algorithm,
    				"X-Amz-Date":           now.AddDate(0, 0, -2).Format(iso8601Format),
    				"X-Amz-Expires":        "60",
    				"X-Amz-Signature":      "badsignature",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  8. cmd/object-api-datatypes.go

    	Inlined bool
    
    	DataBlocks   int
    	ParityBlocks int
    }
    
    // ExpiresStr returns a stringified version of Expires header in http.TimeFormat
    func (o ObjectInfo) ExpiresStr() string {
    	var expires string
    	if !o.Expires.IsZero() {
    		expires = o.Expires.UTC().Format(http.TimeFormat)
    	}
    	return expires
    }
    
    // ArchiveInfo returns any saved zip archive meta information.
    // It will be decrypted if needed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  9. cmd/api-errors.go

    	},
    	ErrMalformedExpires: {
    		Code:           "AuthorizationQueryParametersError",
    		Description:    "X-Amz-Expires should be a number",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrNegativeExpires: {
    		Code:           "AuthorizationQueryParametersError",
    		Description:    "X-Amz-Expires must be non-negative",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrAuthHeaderEmpty: {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  10. cmd/object-handlers.go

    	"github.com/valyala/bytebufferpool"
    )
    
    // supportedHeadGetReqParams - supported request parameters for GET and HEAD presigned request.
    var supportedHeadGetReqParams = map[string]string{
    	"response-expires":             xhttp.Expires,
    	"response-content-type":        xhttp.ContentType,
    	"response-cache-control":       xhttp.CacheControl,
    	"response-content-encoding":    xhttp.ContentEncoding,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top