mirror of
https://github.com/minio/minio.git
synced 2025-04-05 20:30:32 -04: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()
|
u.Credentials.Claims = jwtClaims.Map()
|
||||||
}
|
}
|
||||||
if !u.Credentials.IsTemp() {
|
if u.Credentials.IsTemp() && !u.Credentials.IsServiceAccount() {
|
||||||
c.iamUsersMap[key] = u
|
|
||||||
} else {
|
|
||||||
c.iamSTSAccountsMap[key] = u
|
c.iamSTSAccountsMap[key] = u
|
||||||
|
} else {
|
||||||
|
c.iamUsersMap[key] = u
|
||||||
}
|
}
|
||||||
c.updatedAt = time.Now()
|
c.updatedAt = time.Now()
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user