如何在WSO2 IS 5.9.0中更改用户密码?

问题描述 投票:0回答:1

我正在将WSO2 IS与我们的节点js后端集成,并对js前端进行响应,并成功执行了用于登录,注册和api调用的操作。

[请帮助我如何使用wso2 IS的任何api更改现有用户的密码?

请帮助

wso2 wso2esb wso2is wso2carbon
1个回答
0
投票

[WSO2 Identity Server中有多种更改密码的方法。您可以根据需要选择它。

Option1

管理员可以强制重置用户帐户的密码。 Please refer to this document用于配置管理员强制密码重设。UserProfileMgtService(肥皂服务)用于管理员强制密码重置。一旦管理员调用了肥皂服务(即重新设置密码的管理员服务),电子邮件链接将发送到用户的电子邮件地址,并且用户可以通过单击验证电子邮件/ OTP来更改密码。

Option2:

您也可以通过scim补丁api强制重置密码。 Refer to this document for further details about scim patch operation

curl -v -k --user admin:admin --header“内容类型:应用程序/ json”'https://localhost:9443/scim2/Users/[scim_user_id]'-X PATCH -d'{“方案”:[“ urn:ietf:params:scim:api:messages:2.0:PatchOp”,“ urn:ietf:params:scim:schemas:extension:enterprise:2.0:User”],“ Operations”:[{“ op”:“ add”,“ value”:{“ ur:ietf:参数:scim:方案:扩展名:企业:2.0:用户”:{“ forcePasswordReset”:true}}}]}]

Option3:

您可以使用UserAdmin soap服务更新用户密码。 Please refer to the soap service here。同样在WSO2仪表板中,也使用此管理服务。 You can use this soap services as rest call also

Option4:

如果您需要恢复密码,则在用户忘记密码的情况下,用户可以通过电子邮件通知或使用质询问题来恢复密码。 Please refer to this document to configure the password recovery feature

© www.soinside.com 2019 - 2024. All rights reserved.