阿帕奇晕厥 2.0.0-M2
我使用 Syncope REST API 创建用户。它创建成功,除了密码,它仍然存在null
。
有谁知道如何定义密码?
这是命令:
$ curl -X POST -u admin:password -H "Accept: application/json" -H "Content-Type: application/json" --data @/tmp/newuser.json http://192.168.99.100:8080/syncope/rest/users
请求正文(/tmp/newuser.json):
{"password":"1qaz2wsx","@class":"org.apache.syncope.common.lib.to.UserTO","realm":"/","type":"USER","username":"test1467220729151"}
成功的用户创建响应(带有"password":null
):
{"any":{"@class":"org.apache.syncope.common.lib.to.UserTO","creator":"admin","creationDate":"2016-06-29T17:26:38.115+0000","lastModifier":"admin","lastChangeDate":"2016-06-29T17:26:38.115+0000","key":125,"type":"USER","realm":"/","status":"active","password":null,"token":null,"tokenExpireTime":null,"username":"test1467220729151",...}
我尝试?storePassword=true
了 URI 参数,但结果相同。
提前致谢!