finalized keycloak registration

This commit is contained in:
Jottyfan
2022-12-10 12:52:54 +01:00
parent 29e8ff7798
commit f13a645549
4 changed files with 12 additions and 6 deletions

View File

@ -19,7 +19,7 @@ public class TestKeycloakRepository {
@Test
public void testRegister() {
KeycloakRepository repository = new KeycloakRepository();
UserRepresentation user = repository.getUserRepresentation("Hans", "Dampf", "hans@dampf.org");
UserRepresentation user = repository.getUserRepresentation("Hans", "Dampf", "hans", "password", "hans@dampf.org");
UsersResource resource = repository.getUsersResource("http://localhost:8080", "ow", "owadmin", "password", "biblecamp");
assertTrue(repository.register(resource, user));
}