mirror of https://github.com/minio/minio.git
Letting password enable auth bypass caPublicKey (only if passauth is … (#20022)
This commit is contained in:
parent
f7ff19cb18
commit
e404abf103
|
@ -161,11 +161,13 @@ internalAuth:
|
|||
return nil, errNoSuchUser
|
||||
}
|
||||
|
||||
if caPublicKey != nil {
|
||||
if caPublicKey != nil && pass == nil {
|
||||
|
||||
err := validateKey(c, key)
|
||||
if err != nil {
|
||||
return nil, errAuthentication
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
// Temporary credentials are not allowed.
|
||||
|
|
Loading…
Reference in New Issue