mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
fix: update the user cache while adding service accounts with expiry (#18320)
This commit is contained in:
+3
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user