I can create a new user using the REST API at
http://localhost:8080/auth/admin/realms/myRealm/users
but the user doesn't have a password. Following this post and this post I added credentials to the json like this
{
"firstName":"functest",
"lastName":"functest",
"email":"me@gmail.com",
"enabled":true,
"username":"functest",
"credentials":[{"type":"password","value":"abc123","temporary":false}]
}
but when I try to login with the username and password it fails. When I look at the users credentials in the UI it does show a line with Type password
but the user label is blank.
How can I create a user with a password using the REST API?