Hello everybody,
All times that I create an user via REST API I have to do login on keycloak using administrator account and have to update the credentials from user created via REST API with temporary password setted to false. Just if I do these procedures I can do login on my app using the user created via REST API.
I am using the follow code to create an user via REST API:.....CredentialRepresentation credential = new CredentialRepresentation();credential.setType(CredentialRepresentation. PASSWORD); credential.setValue("test123"); credential.setTemporary(false);
UserRepresentation user = new UserRepresentation();user.setUsername("testuser");user.setFirstName("Test");user.setLastName("User");user.setCredentials(Arrays.asList(credential)); user.setEnabled(true);
Response result = kc.realm("rest-example").users().create(user);
I have setted on code false for temporary credential and user as enabled, even so, I can not do login on my application using the created user without do the procedures that I wrote at the beginning of this issue.
I think that REST API is not respecting the properties of temporary credential setted to false and user setted as enabled. It can be a BUG?
If anybody knows how can I update the credentials from a new user created via REST API leaving it able to do login on my application please let me know.
Regards,Maurício.
_______________________________________________
keycloak-dev mailing list
keycloak-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev