That's the problem - the rest easy client is not exposed in the admin client I
can't get it.
-----Original Message-----
From: keycloak-user-bounces(a)lists.jboss.org [mailto:keycloak-user-bounces@lists.jboss.org]
On Behalf Of Bill Burke
Sent: Sunday, December 11, 2016 6:25 PM
To: keycloak-user(a)lists.jboss.org
Subject: Re: [keycloak-user] Keycloak admin client API connection timeout
Read the resteasy docs. You can set the timeout in ResteasyClient. I forget how.
On 12/11/16 10:33 AM, Haim Vana wrote:
Hi,
We are using keycloak admin client API for various user management operations - most are
create and update user and password.
In the Keycloak getInstance method we can't specify the connection pool size or
timeout - see below, can you please advise what is the connection default timeout ?
And is there any way to change it (pool size or timeout) ?
public static Keycloak getInstance(String serverUrl, String realm, String username,
String password, String clientId) {
return new Keycloak(serverUrl, realm, username, password, clientId, (String)null,
"password", (ResteasyClient)null);
}
Keycloak(String serverUrl, String realm, String username, String password, String
clientId, String clientSecret, String grantType, ResteasyClient resteasyClient) {
this.config = new Config(serverUrl, realm, username, password, clientId,
clientSecret, grantType);
this.client = resteasyClient != null?resteasyClient:(new
ResteasyClientBuilder()).connectionPoolSize(10).build();
this.tokenManager = new TokenManager(this.config, this.client);
this.target = this.client.target(this.config.getServerUrl());
this.target.register(new BearerAuthFilter(this.tokenManager));
}
Thanks,
Haim.
The information contained in this message is proprietary to the sender, protected from
disclosure, and may be privileged. The information is intended to be conveyed only to the
designated recipient(s) of the message. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful. If you have received this
communication in error, please notify us immediately by replying to the message and
deleting it from your computer. Thank you.
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists....
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists....
The information contained in this message is proprietary to the sender, protected from
disclosure, and may be privileged. The information is intended to be conveyed only to the
designated recipient(s) of the message. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful. If you have received this
communication in error, please notify us immediately by replying to the message and
deleting it from your computer. Thank you.