Skip to content

Commit

Permalink
Issue #LR-327 merge: Upgraded the keycloak from 6.0 to 21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hari-stackroute authored May 2, 2024
1 parent b8d1c53 commit c0b8a1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-admin-client</artifactId>
<version>6.0.1</version>
<version>21.1.2</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
Expand All @@ -81,7 +81,7 @@
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<version>3.11.3.Final</version>
<version>4.7.9.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity-tools -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
package org.sunbird.common.models.util;

import org.apache.commons.lang3.StringUtils;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.admin.client.KeycloakBuilder;
import org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl;

/**
* @author Manzarul This class will connect to key cloak server and provide the connection to do
Expand Down Expand Up @@ -48,7 +48,7 @@ public static Keycloak initialiseConnection() throws Exception {
.password(cache.getProperty(JsonKey.SSO_PASSWORD))
.clientId(cache.getProperty(JsonKey.SSO_CLIENT_ID))
.resteasyClient(
new ResteasyClientBuilder()
new ResteasyClientBuilderImpl()
.connectionPoolSize(Integer.parseInt(cache.getProperty(JsonKey.SSO_POOL_SIZE)))
.build());
if (cache.getProperty(JsonKey.SSO_CLIENT_SECRET) != null
Expand Down Expand Up @@ -98,7 +98,7 @@ private static Keycloak initialiseEnvConnection() throws Exception {
.password(password)
.clientId(cleintId)
.resteasyClient(
new ResteasyClientBuilder()
new ResteasyClientBuilderImpl()
.connectionPoolSize(Integer.parseInt(cache.getProperty(JsonKey.SSO_POOL_SIZE)))
.build());

Expand Down

0 comments on commit c0b8a1c

Please sign in to comment.