[keycloak-user] Creating Users from admin url and user passwords

Doug Szeto DSzeto at investlab.com
Mon Sep 21 05:36:39 EDT 2015


Solved by making a second call to:
PUT  /auth/admin/realms/{realm}/users/{userId}/reset-password

Should make a note in the release notes for 1.5.0.
-Doug

From: doug <dszeto at investlab.com<mailto:dszeto at investlab.com>>
Date: Fri, 18 Sep 2015 11:00:08 +0000
To: "keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>" <keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>>
Subject: [keycloak-user] Creating Users from admin url and user passwords

Hi,
I've update from version 1.4.0.Final to 1.5.0.Final.
Was able to use to create users with a script from the admin url api in 1.4.0.
But after the update to 1.5.0.Final, it doesn't seem to accept the credentials anymore.

Here is my request that used to work:
POST /auth/admin/realms/{realm}/users
body={"username":"burke","enabled":true,"credentials":[{"type":"password","value":"password"]}

I'm dumping the realm information and the user is created, but the credentials field is a blank json array.
Uploading a realm with one of the test configs, it seems like it automatically changes the password value to some hashed value.

What actually changed in 1.5.0 with creating users using the admin api with a temporary password so that it can be scripted again?
-Doug
_______________________________________________ keycloak-user mailing list keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org> https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150921/9970c706/attachment.html 


More information about the keycloak-user mailing list