Is there an API call for changing user password on keycloak?

后端 未结 4 1389
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 07:03

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

4条回答
  •  有刺的猬
    2020-12-08 07:30

    Rather than specifying a new password manually a better security practice is to use the

    PUT /auth/admin/realms/{realm}/users/{id}/execute-actions-email

    admin call with "UPDATE_PASSWORD" as the required action. This causes Keycloak to send an email to the user that gives a magic link for the user to set a new password.

    Note: {id} is the user id in keycloak (not the login)

提交回复
热议问题