mirror of https://github.com/minio/minio.git
fix: update the user cache while adding service accounts with expiry (#18320)
This commit is contained in:
parent
d5e8dac1cf
commit
54aed421b8
|
@ -420,10 +420,10 @@ func (c *iamCache) updateUserWithClaims(key string, u UserIdentity) error {
|
|||
}
|
||||
u.Credentials.Claims = jwtClaims.Map()
|
||||
}
|
||||
if !u.Credentials.IsTemp() {
|
||||
c.iamUsersMap[key] = u
|
||||
} else {
|
||||
if u.Credentials.IsTemp() && !u.Credentials.IsServiceAccount() {
|
||||
c.iamSTSAccountsMap[key] = u
|
||||
} else {
|
||||
c.iamUsersMap[key] = u
|
||||
}
|
||||
c.updatedAt = time.Now()
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue