接受:应用程序/json scope:password.write aud:密码
curl命令curl --请求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:应用程序/json‘\ --header 'aud:密码’\ --header‘授权:持有者{token}’\ --header‘缓存控制:无缓存’\ --header‘内容类型:应用程序/x-www-form-urlencoded’\ --header‘杂注:无缓存’\ --header‘作用域: password.write’
带密码的UserId
参考https://github.com/GESoftware-CF/uaa/blob/master/docs/UAA-APIs.rst
发布于 2016-08-02 03:03:48
URL对我来说似乎不正确。它应该以.../password结尾。你引用的文档有一个卷曲的例子...
$ 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://stackoverflow.com/questions/38680061
复制相似问题