Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for express (0.38 sec)

  1. cmd/signature-v2_test.go

    		// (1) Should error on an invalid access key.
    		{
    			queryParams: map[string]string{
    				"Expires":        "60",
    				"Signature":      "badsignature",
    				"AWSAccessKeyId": "Z7IXGOO6BZ0REAN1Q26I",
    			},
    			expected: ErrInvalidAccessKeyID,
    		},
    		// (2) Should error with malformed expires.
    		{
    			queryParams: map[string]string{
    				"Expires":        "60s",
    				"Signature":      "badsignature",
    				"AWSAccessKeyId": accessKey,
    			},
    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. internal/config/identity/openid/provider/keycloak.go

    	"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)
  3. 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 (7)
  4. 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)
  5. cmd/postpolicyform_test.go

    		formValues.Set("X-Amz-Algorithm", tt.XAmzAlgorithm)
    		formValues.Set("X-Amz-Credential", tt.XAmzCredential)
    		if tt.Expired {
    			// Expired already.
    			pp.SetExpires(UTCNow().AddDate(0, 0, -10))
    		} else {
    			// Expires in 10 days.
    			pp.SetExpires(UTCNow().AddDate(0, 0, 10))
    		}
    
    		formValues.Set("Policy", base64.StdEncoding.EncodeToString([]byte(pp.String())))
    		formValues.Set("Success_action_status", tt.SuccessActionStatus)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  6. cmd/object-multipart-handlers.go

    	}
    
    	defer globalCacheConfig.Set(&cache.ObjectInfo{
    		Key:          objInfo.Name,
    		Bucket:       objInfo.Bucket,
    		ETag:         objInfo.ETag,
    		ModTime:      objInfo.ModTime,
    		Expires:      objInfo.ExpiresStr(),
    		CacheControl: objInfo.CacheControl,
    		Size:         asize,
    		Metadata:     cleanReservedKeys(objInfo.UserDefined),
    	})
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  7. cmd/metrics-v2.go

    		metric.VariableLabels[k] = v
    	}
    	for k, v := range m.Histogram {
    		metric.Histogram[k] = v
    	}
    	return metric
    }
    
    // Get - returns cached value always upton the configured TTL,
    // once the TTL expires "read()" registered function is called
    // to return the new values and updated.
    func (g *MetricsGroupV2) Get() (metrics []MetricV2) {
    	m, _ := g.metricsCache.Get()
    	if len(m) == 0 {
    		return []MetricV2{}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  8. cmd/server_test.go

    		"Content-Encoding",
    		"Content-Length",
    		"Content-Type",
    		"Content-Disposition",
    		"Last-Modified",
    		"Content-Language",
    		"Cache-Control",
    		"Retry-After",
    		"X-Amz-Bucket-Region",
    		"Expires",
    		"X-Amz*",
    		"X-Amz*",
    		"*",
    	}
    	expectedMap.Set("Vary", "Origin")
    
    	req, _ := http.NewRequest(http.MethodOptions, s.endPoint, nil)
    	req.Header.Set("Origin", "http://foobar.com")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  9. internal/s3select/sql/value_contrib.go

     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package sql
    
    import "time"
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1K bytes
    - Viewed (0)
  10. internal/event/target/nats_tls_contrib_test.go

     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package target
    
    import (
    	"path"
    	"path/filepath"
    	"testing"
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.1K bytes
    - Viewed (0)
Back to top