RED-4515 - kc createRealm
This commit is contained in:
parent
883ecf6461
commit
336a34a55e
@ -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);
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user