-
Bug
-
Resolution: Done
-
Critical
-
RH-SSO-7.0.0.ER6
-
None
The following code creates a user without a password.
Keycloak kc = Keycloak.getInstance( "http://localhost:8180/auth", "master", "admin", "admin", "admin-cli"); CredentialRepresentation credential = new CredentialRepresentation(); credential.setType(CredentialRepresentation.PASSWORD); credential.setValue("test123"); UserRepresentation user = new UserRepresentation(); user.setUsername("testuser"); user.setFirstName("Test"); user.setLastName("User"); user.setCredentials(Arrays.asList(credential)); kc.realm("test").users().create(user);
Please note that required user actions are also ignored - Though I may be missing a configuration in the realm itself.