在Self-Sign-Up和Challenge Questions API中查找WSO2标识服务器6.0.0版本的SOA



作为WSO2身份服务器6.0.0的一部分,不推荐使用SOAP API,建议使用基于REST的API。我们在项目中使用RemoteUserStoreManagerService.wsdl和UserIdentityManagementAdminService.wsdlSOAP API,希望用推荐的REST API替换SOAP API。您能帮助我们找到REST API列表以取代RemoteUserStoreManagerService.wsdl和UserIdentityManagementAdminService.wsdlSOAP API吗。API文档不清楚。

1.在自签名-Up API下https://is.docs.wso2.com/en/6.0.0/apis/restapis/self-sign-up.yaml我们使用/pi-info和/pi-info/{userId}。对于pi-info/{userId},当我们使用userId访问API时,我们会得到成功的响应,但它不会获取用户信息我们得到1作为响应,在/pi-info中,当我们通过传递用户名来访问API时,我们得到的错误是501未实现。你能解释一下造成这个错误的原因吗。

2.API挑战性问题https://is.docs.wso2.com/en/6.0.0/apis/restapis/challenge.yaml我们正在调用/{user-id}/schallenge和/{user-id}/schallengeanswers GET API with user-id,并且我们得到响应,因为没有为类java.util.ArrayList找到消息正文编写器,ContentType:/,500内部错误。你能告诉我这里出了什么问题吗?是什么导致了这个错误。

如中所述https://github.com/wso2/product-is/issues/10720,/pi信息?用户名=API未实现。因此,期望返回501。https://github.com/wso2/product-is/issues/10720问题将跟踪文档更新。

为了使用/pi-info/{userId}API,您必须使用base64编码的用户名作为这里的用户id(而不是作为用户的用户id生成的UUID(请参阅文档:https://is.docs.wso2.com/en/latest/apis/use-the-self-sign-up-rest-apis/#/User%20Export/getUserById

userId参数描述有:

Unique Identifier of user. First encode the user's username using the Base64 Encoder. Then encode the Base64 Encoded username using the URL Encoder. Use the result you get as the user ID.

您必须在REST API请求中传递"Accept:application/json"头。类似的问题:GET ChallengeQuestion API在版本6.0中不工作

最新更新