mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04: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
|
return nil, errNoSuchUser
|
||||||
}
|
}
|
||||||
|
|
||||||
if caPublicKey != nil {
|
if caPublicKey != nil && pass == nil {
|
||||||
|
|
||||||
err := validateKey(c, key)
|
err := validateKey(c, key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errAuthentication
|
return nil, errAuthentication
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Temporary credentials are not allowed.
|
// Temporary credentials are not allowed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user