diff --git a/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java b/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java index d9b90d98c4..a2490b6120 100755 --- a/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java +++ b/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java @@ -46,12 +46,22 @@ public interface UserResource { @Path("reset-password") public void resetPassword(CredentialRepresentation credentialRepresentation); + /** + * Use executeActionsEmail and pass in the UPDATE_PASSWORD required action + * + */ @PUT @Path("reset-password-email") + @Deprecated public void resetPasswordEmail(); + /** + * Use executeActionsEmail and pass in the UPDATE_PASSWORD required action + * + */ @PUT @Path("reset-password-email") + @Deprecated public void resetPasswordEmail(@QueryParam("client_id") String clientId); @PUT diff --git a/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java b/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java index 9939d6e8d5..9a47885ad8 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java @@ -886,11 +886,15 @@ public class UsersResource { * The redirectUri and clientId parameters are optional. The default for the * redirect is the account client. * + * This endpoint has been deprecated. Please use the execute-actions-email passing a list with + * UPDATE_PASSWORD within it. + * * @param id * @param redirectUri redirect uri * @param clientId client id * @return */ + @Deprecated @Path("{id}/reset-password-email") @PUT @Consumes(MediaType.APPLICATION_JSON)