【问题标题】:wso2is-5.3.0 How to update Identity claimswso2is-5.3.0 如何更新身份声明
【发布时间】:2017-01-19 10:55:13
【问题描述】:

我仍在尝试从 wso2is-5.2.0 to wsois-5.3.0. 迁移我的应用程序 我的应用是一个管理用户的rest api,我称之为wso2is soap webservices。

在 5.3.0 中,我似乎无法使用 web 服务修改身份声明,例如 identity/accountLocked 或 identity/failedLoginAttempts

TID:1 [2017-01-19 10:42:26,672] admin@wso2.org@mycompany.com 1 [IS]错误 {org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver} - InvalidOperation 身份声明不支持此操作 org.wso2.carbon.user.core.UserStoreException: InvalidOperation This 身份声明不支持操作 在 org.wso2.carbon.identity.governance.listener.IdentityStoreEventListener.doPreSetUserClaimValue(IdentityStoreEventListener.java:202) 在 org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValue(AbstractUserStoreManager.java:1252)

我需要在某些用例上手动解锁帐户,或重置 failedLoginAttempts 以进行集成测试,是否有其他 Web 服务/解决方案可以实现?

问候,

【问题讨论】:

  • 你试过什么服务?
  • RemoteUserStoreManagerServiceStub.setUserClaimValue()

标签: wso2 wso2is


【解决方案1】:

是的。您必须使用 RemoteUserStoreManagerServiceStub.setUserClaimValues() 方法而不是 RemoteUserStoreManagerServiceStub.setUserClaimValue() 方法。在 IS 5.3.0 中,RemoteUserStoreManagerServiceStub.setUserClaimValue() 方法因身份声明而被阻止。

谢谢
伊苏拉

【讨论】:

  • 我宁愿找到 UserIdentityMgtAdminClient.lockAccount 但感谢您的回答。知道如何 getUserClaimValue() 来查看帐户是否被锁定 RemoteUserStoreManagerServiceStub.setUserClaimValue 在数据库中为 accountLock 返回 null 而不是 true
  • 你必须使用 RemoteUserStoreManagerServiceStub.getUserClaimValues() 方法。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-01-22
  • 1970-01-01
  • 2016-12-23
  • 2018-07-30
  • 2017-06-17
  • 1970-01-01
  • 2016-03-01
相关资源
最近更新 更多