[keycloak-user] Keycloak admin client API connection timeout

Bill Burke bburke at redhat.com
Sun Dec 11 11:24:58 EST 2016


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user



More information about the keycloak-user mailing list