WSO2IS 5.3.0 - 身份声明缓存
WSO2IS 5.3.0 - identity claims caching
我相信我在使用 WSO2IS 5.3.0 的应用程序中看到了一些身份声明的缓存。当通过 UserStoreManager.setUserClaimValues 更改身份声明时(例如, http://wso2.org/claims/identity/accountDisabled ),该更改需要一些时间才能反映在对 UserStoreManager.getUserClaimValues
的后续调用中
我搜索了此处提到的配置 https://docs.wso2.com/display/IS530/Configuring+Cache+Layers,但在我们的设置中没有看到。我也没有看到我可以归因于此行为的任何其他配置。
正在寻找解释,在此先感谢。
从我的评论中复制出来
供其他人参考,身份声明由配置的 IdentityUserStore 管理,其配置可以通过 conf/identity/identity-mgt.properties Identity.Mgt.User.Data.Store=org.[=18= 中的这一行找到]
(JDBCIdentityDataStore 确实进行了一些缓存以防止不必要的数据库命中,并且在写入时使该缓存无效)
我相信我在使用 WSO2IS 5.3.0 的应用程序中看到了一些身份声明的缓存。当通过 UserStoreManager.setUserClaimValues 更改身份声明时(例如, http://wso2.org/claims/identity/accountDisabled ),该更改需要一些时间才能反映在对 UserStoreManager.getUserClaimValues
的后续调用中我搜索了此处提到的配置 https://docs.wso2.com/display/IS530/Configuring+Cache+Layers,但在我们的设置中没有看到。我也没有看到我可以归因于此行为的任何其他配置。
正在寻找解释,在此先感谢。
从我的评论中复制出来
供其他人参考,身份声明由配置的 IdentityUserStore 管理,其配置可以通过 conf/identity/identity-mgt.properties Identity.Mgt.User.Data.Store=org.[=18= 中的这一行找到]
(JDBCIdentityDataStore 确实进行了一些缓存以防止不必要的数据库命中,并且在写入时使该缓存无效)