Merge pull request #2505 from guusdk/KEYCLOAK-2746

KEYCLOAK-2746: By default, allow for concurrent usage
This commit is contained in:
Stian Thorgersen 2016-04-07 07:35:39 +02:00
commit a7c956bf10

View file

@ -46,7 +46,7 @@ public class Keycloak {
Keycloak(String serverUrl, String realm, String username, String password, String clientId, String clientSecret, ResteasyClient resteasyClient){ Keycloak(String serverUrl, String realm, String username, String password, String clientId, String clientSecret, ResteasyClient resteasyClient){
config = new Config(serverUrl, realm, username, password, clientId, clientSecret); config = new Config(serverUrl, realm, username, password, clientId, clientSecret);
client = resteasyClient != null ? resteasyClient : new ResteasyClientBuilder().build(); client = resteasyClient != null ? resteasyClient : new ResteasyClientBuilder().connectionPoolSize(10).build();
tokenManager = new TokenManager(config, client); tokenManager = new TokenManager(config, client);