[keycloak-user] reset password over REST request.
Сергій Дзюбін
kotychok at gmail.com
Wed Oct 8 15:43:10 EDT 2014
Hello. What is the role of a user to reset a password of another user by
calling a REST request: /reset-passschord?
For example:
$scope.setCredential = function(loginname) {
$http.put("/admin/realms/" + auth.authz.realm +
"/users/"+loginname+"/reset-password",{PASSWORD : loginname, SECRET :
loginname, temporary : true }).success(function() {
console.log("Reset password to temporary OK!");
})
};
$scope.createUser = function() {
$http.post("http://localhost-auth:8080/auth/admin/realms/" +
auth.authz.realm + "/users",{username:"bob", enabled: true,
firstName:"Bob",lastName:"Ivanov",emailVerified:false}).success(function() {
$scope.setCredential("bob");
});
};
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20141008/071b32dc/attachment.html
More information about the keycloak-user
mailing list