https://77b186f0-b9a1-4956-b72a-630108a331b7.predix-uaa.run.aws-usw02-pr.ice.predix.io/Users/daa7daaa-23b3-409d-b6ce-0857b76a62de/s102
接受:application/json作用域:password.writeaud:密码
curl命令curl—请求POST\--urlhttps://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"\--标头"aud:password"\--标头"授权:承载{token}"\--标头"缓存控制:无缓存"\--header"内容类型:application/x-www-form-urlencoded"\--标头"pragma:无缓存"\--标头"scope:password.write"
密码为的UserId
供参考https://github.com/GESoftware-CF/uaa/blob/master/docs/UAA-APIs.rst
我觉得URL不正确。它应该以…结尾/暗语你引用的医生有一个卷曲的例子。。。
$ 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