mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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
Block a user