Esempio n. 1
0
 public KeycloakTestingClient getTestingClient() {
   if (testingClient == null) {
     testingClient =
         KeycloakTestingClient.getInstance(
             AuthServerTestEnricher.getAuthServerContextRoot() + "/auth");
   }
   return testingClient;
 }
Esempio n. 2
0
 private String invokeTimeOffset(int offset) {
   // adminClient depends on Time.offset for auto-refreshing tokens
   Time.setOffset(offset);
   Map result =
       testingClient
           .testing()
           .setTimeOffset(Collections.singletonMap("offset", String.valueOf(offset)));
   return String.valueOf(result);
 }