I’m using the keycloak admin Java library to create a client, like so:
ClientRepresentation client = new ClientRepresentation();
client.setClientId(clientId);
client.setName(clientId);
client.setStandardFlowEnabled(true);
client.setAuthorizationServicesEnabled(true);
client.setDirectAccessGrantsEnabled(true);
client.setPublicClient(true);
client.setEnabled(true);
client.setSecret(secret);
client.setServiceAccountsEnabled(true);
client.setAlwaysDisplayInConsole(true);
client.setDefaultClientScopes(List.of(Scopes.OPENID, Scopes.PROFILE, Scopes.EMAIL, Scopes.ROLES));
client.setRedirectUris(List.of(publicUrl + "/*"));
realm.clients().create(client);
I’m trying to turn these two switches on:
I can’t find appropriate properties to set on the client to make this happen.
How do I do it?
Many thanks for any help offered.
