mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
fix: sts to return appropriate errors (#9161)
This commit is contained in:
@@ -108,7 +108,11 @@ func parseCredentialHeader(credElement string, region string, stype serviceType)
|
||||
|
||||
}
|
||||
if credElements[2] != string(stype) {
|
||||
return ch, ErrInvalidService
|
||||
switch stype {
|
||||
case serviceSTS:
|
||||
return ch, ErrInvalidServiceSTS
|
||||
}
|
||||
return ch, ErrInvalidServiceS3
|
||||
}
|
||||
cred.scope.service = credElements[2]
|
||||
if credElements[3] != "aws4_request" {
|
||||
|
||||
Reference in New Issue
Block a user