<div dir="ltr">You need to configure the correct auth-server-url in keycloak.json for your application using keycloak.js. It should be the loadbalancer URL.</div><div class="gmail_extra"><br><div class="gmail_quote">On 10 May 2016 at 15:11, Subhrajyoti Moitra <span dir="ltr">&lt;<a href="mailto:subhrajyotim@gmail.com" target="_blank">subhrajyotim@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello,<br></div>I have a client application, that will be using Keycloak for authentication and authorization.<br></div>There are 2 instances of this application running on (lets say) service1 and service2.<br><br></div>These 2 service instance are behind the load balancer. The load balancer has sticky sessions on.<br><br></div><div>Now a user browses to the loadbalancer url, which in turn serves the service instances, service1 or service2.<br></div>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.<br><br></div>How do i use Keycloak for loadbalanced services?<br><br></div>Is there some specific setting, or setup of the server?<br><br></div>Please help and guide,<br></div>Thanks and cheers,<br></div>Subhro.<br></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>