是否有API调用可用于更改密钥斗篷上的用户密码? [英] Is there an API call for changing user password on keycloak?
本文介绍了是否有API调用可用于更改密钥斗篷上的用户密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试实现自己的表单来更改用户密码.我试图在Keycloak中找到一个用于更改用户密码的API,但在文档中找不到任何内容. 是否有执行此操作的API?
I am trying to implement my own form for changing a user's password. I tried to find an API for changing a user's password in Keycloak but I couldn't find anything in the documentation. Is there an API for doing it?
推荐答案
您可以使用PUT /auth/admin/realms/{realm}/users/{id}/reset-password
- {id}是密钥斗篷中的用户ID(不是登录名)
这是样本的身体.
{ "type": "password", "temporary": false, "value": "my-new-password" }
{ "type": "password", "temporary": false, "value": "my-new-password" }
这篇关于是否有API调用可用于更改密钥斗篷上的用户密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文