RED-4515 - kc createRealm

This commit is contained in:
Timo Bejan 2023-03-23 17:29:13 +02:00
parent 883ecf6461
commit 336a34a55e
2 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,8 @@ public abstract class AbstractPersistenceServerServiceTest {
redactionSystemClient.setName(keyCloakSettings.getClientId());
redactionSystemClient.setClientId(keyCloakSettings.getClientId());
redactionSystemClient.setSecret(keyCloakSettings.getClientSecret());
redactionSystemClient.setDirectAccessGrantsEnabled(true);
redactionSystemClient.setServiceAccountsEnabled(true);
KeyCloakTestContainer.getInstance().getKeycloakAdminClient().realm("redaction").clients().create(redactionSystemClient);

View File

@ -52,6 +52,7 @@ public class TokenService {
} catch (BadRequestException e) {
var response = e.getResponse().getEntity();
System.out.println(response);
return null;
} catch (NotAuthorizedException e) {
throw new AuthenticationFailedException(e);
} finally {