0

https://77b186f0-b9a1-4956-b72a-630108a331b7.predix-uaa.run.aws-usw02-pr.ice.predix.io/Users/daa7daaa-23b3-409d-b6ce-0857b76a62de/s102

接受:应用程序/json 范围:password.write aud:密码

curl 命令 curl --request POST \ --url https://77b186f0-b9a1-4956-b72a-630108a331b7.predix-uaa.run.aws-usw02-pr.ice.predix.io/Users/daa7daaa-23b3-409d -b6ce-0857b76a62de/dff \ --header 'accept: application/json' \ --header 'aud: password' \ --header '授权:bearer {token}' \ --header '缓存控制:无缓存' \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'pragma: no-cache' \ --header 'scope: password.write'

带密码的用户 ID

供参考 https://github.com/GESoftware-CF/uaa/blob/master/docs/UAA-APIs.rst

4

1 回答 1

0

URL 对我来说似乎不正确。它应该以 .../password 结尾。您引用的文档有一个 curl 示例...

$ curl 'http://localhost:8080/Users/a9717027-b838-40bd-baca-b9f9d38a440d/password' -i -X PUT -H 'Authorization: Bearer tURh3jpUFIvZ96G9o' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"oldPassword":"secr3T","password":"n3wAw3som3Passwd"}'

请参阅https://github.com/GESoftware-CF/uaa/blob/master/docs/UAA-APIs.rst#change-password-put-users-id-password

于 2016-08-01T19:03:48.170 回答