![](/img/trans.png)
[英]Finding the replacement of the SOAP APIs for WSO2 identity server for 6.0.0 version in that Self Sign-Up and Challenge Questions API are not working
[英]create user in Self sign up API in WSO2 version 6.0
Under Self Sign-up API https://is.docs.wso2.com/en/latest/apis/use-the-self-sign-up-rest-apis/#/ we are calling /me POST API for creating the用户,我们在创建 201 时得到响应,但我们没有得到这样的响应
{
"code": "USR-02007",
"message": "successful user self registration",
"notificationChannel": "EMAIL"
}
这里出了什么问题是什么导致了这里的问题?
当您使用自注册 REST API 时,如果您希望获得详细响应,请将以下配置添加到<IS-HOME>/repository/conf/deployment.toml
文件并重新启动服务器。 (响应基于配置启用,以支持向后兼容性)。 无论如何,这个配置应该在 REST API 文档中更新。
[identity_mgt.user_self_registration]
enable_detailed_api_response = true
如果未启用配置,则没有响应正文,响应状态码为 201。
您可以将以下配置添加到deployment.toml
以启用更详细的自注册 API 响应。
[identity_mgt.user_self_registration]
enable_detailed_api_response = true
另请注意,现有注册页面不支持这些 API 响应。 您需要拥有自定义 UI 或改进现有 UI 以支持新的响应 model。 在尝试此配置之前,请参阅以下文档,因为这些改进是针对更复杂的用例完成的。
我已经写了几篇关于这个用例的文章。 以下是其中的一些。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.