1

在通过 SCIM REST API 创建 WSO2 用户时,有没有办法指定您要向用户询问密码而不是显式设置密码?

例如,我可以通过 REST API 成功创建用户,如下所示:

curl -v -k --user admin:admin --data "{"schemas":[],"name":     {"familyName":"vader","givenName":"darth"},"userName":"dvader@empire.com","password":"myPassword","emails":[{"primary":true,"value":"darthvader@empire.com","type":"home"},{"value":"darthvader@tatooine.com","type":"work"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users

但不是明确设置密码,我想以这种方式创建一个用户,但允许用户设置他们的密码。

使用 WSO2 管理控制台添加用户时,您可以选择“向用户询问密码”框,因此似乎可以。我只需要知道如何通过 REST API 来做到这一点。

谢谢。

4

2 回答 2

0

“向用户询问密码”选项带有身份服务器的身份管理功能。目前(直到 WSO2IS 5.0.0)不可能为通过 SCIM 配置的用户执行此操作。您必须提供一个通用密码,以后的用户可以更改它。

于 2014-09-23T22:47:40.640 回答
0

WSO2 Identity Server 5.0.0 也支持 SCIM 的询问密码功能。您可以使用以下请求来创建用户。这里我们不需要为用户提供密码。我们需要提供用户的电子邮件地址,因为帐户确认电子邮件将发送到该电子邮件地址。

curl -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"edirisinghe","givenName":"dushan"},"userName":"edirisinghe" , "电子邮件":"thariyarox@gmail.com"}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users

您可以通过参考 [1] 了解有关此功能的更多信息。

[1] http://tharindue.blogspot.com/2015/07/create-users-with-ask-password-feature.html

谢谢你,Tharindu Edirisinghe

于 2015-07-20T20:59:35.993 回答