You need to configure the correct auth-server-url in keycloak.json for your application using keycloak.js. It should be the loadbalancer URL.On 10 May 2016 at 15:11, Subhrajyoti Moitra <subhrajyotim@gmail.com> wrote:_______________________________________________Subhro.Thanks and cheers,Please help and guide,Is there some specific setting, or setup of the server?How do i use Keycloak for loadbalanced services?These 2 service instance are behind the load balancer. The load balancer has sticky sessions on.There are 2 instances of this application running on (lets say) service1 and service2.Hello,I have a client application, that will be using Keycloak for authentication and authorization.Now a user browses to the loadbalancer url, which in turn serves the service instances, service1 or service2.Now when the service instance pages are using keycloak.js to verify the login, I dont get the loadbalancer URL as the redirect url value, rather the redirect url is of the actual service instance URL on which the service is hosted.
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user