首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我想要更新predix中用户的密码,但显示错误?

我想要更新predix中用户的密码,但显示错误?
EN

Stack Overflow用户
提问于 2016-07-31 09:53:08
回答 1查看 199关注 0票数 0

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

接受:应用程序/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

EN

回答 1

Stack Overflow用户

发布于 2016-08-02 03:03:48

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

代码语言:javascript
复制
$ 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38680061

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档