mirror of
https://github.com/minio/minio.git
synced 2025-02-23 11:32:32 -05:00
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…
x
Reference in New Issue
Block a user