- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for ErrInvalidAccessKeyID (0.23 sec)
-
cmd/auth-handler_test.go
testCases := []struct { AccessKey string SecretKey string ErrCode APIErrorCode }{ {"", "", ErrInvalidAccessKeyID}, {"admin", "", ErrSignatureDoesNotMatch}, {"admin", "wrongpassword", ErrSignatureDoesNotMatch}, {"wronguser", "mypassword", ErrInvalidAccessKeyID}, {"", "mypassword", ErrInvalidAccessKeyID}, {"admin", "mypassword", ErrNone}, } for i, testCase := range testCases {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.4K bytes - Viewed (0) -
cmd/signature-v4_test.go
{ form: http.Header{ "X-Amz-Credential": []string{fmt.Sprintf(credentialTemplate, "EXAMPLEINVALIDEXAMPL", now.Format(yyyymmdd), globalMinioDefaultRegion)}, }, expected: ErrInvalidAccessKeyID, }, // (2) It should fail with a bad signature. { form: http.Header{ "X-Amz-Credential": []string{fmt.Sprintf(credentialTemplate, accessKey, now.Format(yyyymmdd), globalMinioDefaultRegion)},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 10.5K bytes - Viewed (0) -
cmd/signature-v4-utils_test.go
} if !owner { t.Fatalf("Expected owner to be 'true', found %t", owner) } _, _, s3Err = checkKeyValid(req, "does-not-exist") if s3Err != ErrInvalidAccessKeyID { t.Fatalf("Expected error 'ErrInvalidAccessKeyID', found %v", s3Err) } ucreds, err := auth.CreateCredentials("myuser1", "mypassword1") if err != nil { t.Fatalf("unable create credential, %s", err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
cmd/apierrorcode_string.go
_ = x[ErrAccessDenied-1] _ = x[ErrBadDigest-2] _ = x[ErrEntityTooSmall-3] _ = x[ErrEntityTooLarge-4] _ = x[ErrPolicyTooLarge-5] _ = x[ErrIncompleteBody-6] _ = x[ErrInternalError-7] _ = x[ErrInvalidAccessKeyID-8] _ = x[ErrAccessKeyDisabled-9] _ = x[ErrInvalidArgument-10] _ = x[ErrInvalidBucketName-11] _ = x[ErrInvalidDigest-12] _ = x[ErrInvalidRange-13] _ = x[ErrInvalidRangePartNumber-14]
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 21.4K bytes - Viewed (0) -
cmd/storage-rest-client.go
return errCorruptedFormat case errCorruptedBackend.Error(): return errCorruptedBackend case errUnformattedDisk.Error(): return errUnformattedDisk case errInvalidAccessKeyID.Error(): return errInvalidAccessKeyID case errAuthentication.Error(): return errAuthentication case errRPCAPIVersionUnsupported.Error(): return errRPCAPIVersionUnsupported case errServerTimeMismatch.Error():
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Oct 13 13:07:21 UTC 2024 - 30.2K bytes - Viewed (0) -
cmd/signature-v4-parser_test.go
{ inputCredentialStr: generateCredentialStr( "^#", UTCNow().Format(yyyymmdd), "ABCD", "ABCD", "ABCD"), expectedCredentials: credentialHeader{}, expectedErrCode: ErrInvalidAccessKeyID, }, // Test Case - 5. // Test case with invalid date format date. // a valid date format for credentials is "yyyymmdd". { inputCredentialStr: generateCredentialStr(
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 27.4K bytes - Viewed (0) -
cmd/auth-handler.go
return nil, ErrInvalidToken } // Expired credentials must return error right away. if cred.IsTemp() && cred.IsExpired() { return nil, toAPIErrorCode(r.Context(), errInvalidAccessKeyID) } secret := globalActiveCred.SecretKey if globalSiteReplicationSys.isEnabled() && cred.AccessKey != siteReplicatorSvcAcc { nsecret, err := getTokenSigningKey() if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 17 16:45:46 UTC 2024 - 26.1K bytes - Viewed (0) -
cmd/sts-handlers.go
Queries(stsAction, customTokenIdentity). Queries(stsVersion, stsAPIVersion) } func apiToSTSError(authErr APIErrorCode) (stsErrCode STSErrorCode) { switch authErr { case ErrSignatureDoesNotMatch, ErrInvalidAccessKeyID, ErrAccessKeyDisabled: return ErrSTSAccessDenied case ErrServerNotInitialized: return ErrSTSNotInitialized case ErrInternalError: return ErrSTSInternalError default: return ErrSTSAccessDenied
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 01:29:20 UTC 2024 - 33.9K bytes - Viewed (0) -
cmd/storage-rest-server.go
err = unwrapAll(err) switch err { case errDiskStale: w.WriteHeader(http.StatusPreconditionFailed) case errFileNotFound, errFileVersionNotFound: w.WriteHeader(http.StatusNotFound) case errInvalidAccessKeyID, errAccessKeyDisabled, errNoAuthToken, errMalformedAuth, errAuthentication, errSkewedAuthTime: w.WriteHeader(http.StatusUnauthorized) case context.Canceled, context.DeadlineExceeded: w.WriteHeader(499) default:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 45.7K bytes - Viewed (0)