【问题标题】:WSO2: Ask Password From User when creating user via SCIM Rest EndpointWSO2:通过 SCIM Rest Endpoint 创建用户时询问用户密码
【发布时间】:2014-08-16 02:25:17
【问题描述】:

在通过 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 来完成。

谢谢。

【问题讨论】:

    标签: wso2 wso2is scim


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      curl -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"edirisinghe","givenName":"dushan"},"userName": "edirisinghe", "emails":"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

      【讨论】:

        猜你喜欢
        • 2023-03-29
        • 1970-01-01
        • 1970-01-01
        • 2021-05-03
        • 1970-01-01
        • 2020-06-27
        • 1970-01-01
        • 2021-03-19
        • 1970-01-01
        相关资源
        最近更新 更多