【问题标题】:WSO2IS 5.3.0 - identity claims cachingWSO2IS 5.3.0 - 身份声明缓存
【发布时间】:2020-11-04 22:01:07
【问题描述】:

我相信我在使用 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.wso2.carbon.identity 中的这一行找到。 mgt.store.JDBCIdentityDataStore

标签: wso2 wso2is


【解决方案1】:

从我的评论中复制出来

供他人参考,身份声明由配置的IdentityUserStore管理,其配置可以通过conf/identity/identity-mgt.properties Identity.Mgt.User.Data.Store=org中的这一行找到。 wso2.carbon.identity.mgt.store.JDBCIdentityDataStore

(JDBCIdentityDataStore 确实进行了一些缓存以防止不必要的 DB 命中,并且在写入时使该缓存无效)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-01
    • 2013-10-12
    • 2021-12-02
    • 1970-01-01
    • 2013-05-30
    • 1970-01-01
    相关资源
    最近更新 更多