Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在WSO2 IS 5.9.0中,如何借助API配置密码策略和登录策略?_Wso2_Wso2is_Wso2carbon - Fatal编程技术网

在WSO2 IS 5.9.0中,如何借助API配置密码策略和登录策略?

在WSO2 IS 5.9.0中,如何借助API配置密码策略和登录策略?,wso2,wso2is,wso2carbon,Wso2,Wso2is,Wso2carbon,我需要找到密码策略(密码历史记录和密码模式)和登录策略(帐户锁定和帐户禁用)的REST/SOAPAPI 我正在使用WSO2 IS 5.9.0 我正在从WSO2创建一个多租户环境。我能够执行代码中的所有步骤,但无法找到这两个设置的API 我必须手动执行此操作,但这只是一个解决方法,需要为这些操作找出WSO2 API 需要这两个设置API的curl请求或文档。从WSO2 IS 5.10.0开始,有一个rest API来更新这些配置 然而,在5.9.0及之前的版本中,只有SOAP API可用。你可

我需要找到密码策略(密码历史记录和密码模式)和登录策略(帐户锁定和帐户禁用)的REST/SOAPAPI

我正在使用WSO2 IS 5.9.0

我正在从WSO2创建一个多租户环境。我能够执行代码中的所有步骤,但无法找到这两个设置的API

我必须手动执行此操作,但这只是一个解决方法,需要为这些操作找出WSO2 API


需要这两个设置API的curl请求或文档。

从WSO2 IS 5.10.0开始,有一个rest API来更新这些配置

然而,在5.9.0及之前的版本中,只有SOAP API可用。你可以用https://localhost:9443/services/IdentityGovernanceAdminService 用于此目的的SOAP服务。此服务中有2个可用操作
getConnectorList
updateConfigurations

您可以使用
getConnectorList
查找可用的连接器及其属性名称。然后您可以使用
updateConfigurations
操作来更新属性值。消息正文如下所示,用于更新密码历史验证计数配置

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gov="http://governance.identity.carbon.wso2.org" xmlns:xsd="http://model.common.application.identity.carbon.wso2.org/xsd">
   <soapenv:Header/>
   <soapenv:Body>
      <gov:updateConfigurations>
         <gov:configurations>
            <xsd:name>passwordHistory.count</xsd:name>
            <xsd:value>6</xsd:value>
         </gov:configurations>
      </gov:updateConfigurations>
   </soapenv:Body>
</soapenv:Envelope>

passwordHistory.count
6.

感谢buddy的帮助……您可以发送请求的curl请求,还是只发送两个请求的请求url?