- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for generateCredentials (0.29 sec)
-
cmd/signature-v4-parser_test.go
return strings.Join([]string{ accessKey, date, region, service, requestVersion, }, SlashSeparator) } // generate CredentialHeader from its fields. func generateCredentials(t *testing.T, accessKey string, date string, region, service, requestVersion string) credentialHeader { cred := credentialHeader{ accessKey: accessKey, } parsedDate, err := time.Parse(yyyymmdd, date)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 27.4K bytes - Viewed (0) -
internal/auth/credentials.go
default: expAt, err = 0, ErrInvalidDuration } if expAt < 0 { return 0, ErrInvalidDuration } return expAt, err } // GenerateCredentials - creates randomly generated credentials of maximum // allowed length. func GenerateCredentials() (accessKey, secretKey string, err error) { accessKey, err = GenerateAccessKey(accessKeyMaxLen, rand.Reader) if err != nil { return "", "", err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 28 17:14:16 UTC 2024 - 12K bytes - Viewed (0) -
cmd/admin-handlers-users_test.go
c.Fatalf("unable to delete svc acc: %v", err) } c.mustNotListObjects(ctx, svcClient, bucket) } func mustGenerateCredentials(c *check) (string, string) { c.Helper() ak, sk, err := auth.GenerateCredentials() if err != nil { c.Fatalf("unable to generate credentials: %v", err) } return ak, sk
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 45.7K bytes - Viewed (0) -
cmd/iam.go
var accessKey, secretKey string var err error if len(opts.accessKey) > 0 || len(opts.secretKey) > 0 { accessKey, secretKey = opts.accessKey, opts.secretKey } else { accessKey, secretKey, err = auth.GenerateCredentials() if err != nil { return auth.Credentials{}, time.Time{}, err } } cred, err := auth.CreateNewCredentialsWithMetadata(accessKey, secretKey, m, secretKey) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 71.9K bytes - Viewed (0) -
cmd/site-replication.go
var secretKey string var svcCred auth.Credentials sa, _, err := globalIAMSys.getServiceAccount(ctx, siteReplicatorSvcAcc) switch { case err == errNoSuchServiceAccount: _, secretKey, err = auth.GenerateCredentials() if err != nil { return madmin.ReplicateAddStatus{}, errSRServiceAccount(fmt.Errorf("unable to create local service account: %w", err)) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 184.3K bytes - Viewed (0)