mirror of
https://github.com/minio/minio.git
synced 2026-11-20 23:06:17 +00:00
Generate and use access/secret keys properly (#3498)
This commit is contained in:
1 parent
6ee27daac1
commit
e8ce3b64ed
42 files changed
+429
-447
No files matched your search
@@ -32,7 +32,7 @@ func TestLoginHandler(t *testing.T) {
|
||||
}{
|
||||
// Valid username and password
|
||||
{
|
||||
args: RPCLoginArgs{Username: creds.AccessKeyID, Password: creds.SecretAccessKey},
|
||||
args: RPCLoginArgs{Username: creds.AccessKey, Password: creds.SecretKey},
|
||||
expectedErr: nil,
|
||||
},
|
||||
// Invalid username length
|
||||
@@ -47,12 +47,12 @@ func TestLoginHandler(t *testing.T) {
|
||||
},
|
||||
// Invalid username
|
||||
{
|
||||
args: RPCLoginArgs{Username: "aaaaa", Password: creds.SecretAccessKey},
|
||||
args: RPCLoginArgs{Username: "aaaaa", Password: creds.SecretKey},
|
||||
expectedErr: errInvalidAccessKeyID,
|
||||
},
|
||||
// Invalid password
|
||||
{
|
||||
args: RPCLoginArgs{Username: creds.AccessKeyID, Password: "aaaaaaaa"},
|
||||
args: RPCLoginArgs{Username: creds.AccessKey, Password: "aaaaaaaa"},
|
||||
expectedErr: errAuthentication,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user