2016-06-29 28 views
0

Apache Syncope 2.0.0-M2Apache Syncope REST API:在創建用戶時設置密碼

我使用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參數,但結果相同。

提前致謝!

回答

0

看來我使用自定義的Apache暈厥,它改變了null- password字段的響應。
密碼本身設置正確,可用於身份驗證。

相關問題