<div dir="ltr">Hi,<div><br></div><div>When i access my app from <a href="http://localhost:8080/customer-portal">http://localhost:8080/customer-portal</a> and it was redirected to keycloak login page (<a href="https://192.168.1.10:8443/auth">https://192.168.1.10:8443/auth</a>). After login is successful, the request is redirected back to <a href="http://localhost:8080/customer-portal">http://localhost:8080/customer-portal</a> instead of <a href="http://localhost:9080/customer-portal">http://localhost:9080/customer-portal</a>. Can someone advise what&#39;s wrong with the settings? </div><div><div><br></div><div>keycloak proxy server hosted on localhost:8080<br></div><div><br></div><div>customer-portal application hosted on localhost:9080</div><div><br></div><div>proxy.json configuration shown below.</div><div><br></div><div><div>{</div><div>    &quot;target-url&quot;: &quot;<a href="http://localhost:8082">http://localhost:8082</a>&quot;,</div><div>    &quot;bind-address&quot;: &quot;localhost&quot;,</div><div>    &quot;http-port&quot;: &quot;8080&quot;,</div><div>    &quot;https-port&quot;: &quot;8443&quot;,</div><div>    &quot;keystore&quot;: &quot;classpath:ssl.jks&quot;,</div><div>    &quot;keystore-password&quot;: &quot;password&quot;,</div><div>    &quot;key-password&quot;: &quot;password&quot;,</div><div>    &quot;send-access-token&quot;: true,</div><div>    &quot;applications&quot;: [</div><div>        {</div><div>            &quot;base-path&quot;: &quot;/customer-portal&quot;,</div><div>            &quot;error-page&quot;: &quot;/error.html&quot;,</div><div>            &quot;adapter-config&quot;: {</div><div>                &quot;realm&quot;: &quot;demo&quot;,</div><div>                &quot;resource&quot;: &quot;customer-portal&quot;,</div><div>                &quot;realm-public-key&quot;: &quot;MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB&quot;,</div><div>                &quot;auth-server-url&quot;: &quot;<a href="https://192.168.1.10:8443/auth">https://192.168.1.10:8443/auth</a>&quot;,</div><div>                &quot;ssl-required&quot; : &quot;external&quot;,</div><div><span class="" style="white-space:pre">                </span>&quot;enable-cors&quot; : true,</div><div>                &quot;principal-attribute&quot;: &quot;KEYCLOAK_NAME&quot;,</div><div>                &quot;credentials&quot;: {</div><div>                    &quot;secret&quot;: &quot;password&quot;</div><div>                }</div><div>            }</div><div>            ,</div><div>            &quot;constraints&quot;: [</div><div>                {</div><div>                    &quot;pattern&quot;: &quot;/users/*&quot;,</div><div>                    &quot;roles-allowed&quot;: [</div><div>                        &quot;user&quot;</div><div>                    ]</div><div>                },</div><div><span class="" style="white-space:pre">                                </span>   {</div><div>                    &quot;pattern&quot;: &quot;/*&quot;,</div><div>                    &quot;roles-allowed&quot;: [</div><div>                        &quot;user&quot;</div><div>                    ]</div><div>                },</div><div>                {</div><div>                    &quot;pattern&quot;: &quot;/call-bearer/*&quot;,</div><div>                    &quot;roles-allowed&quot;: [</div><div>                        &quot;user&quot;</div><div>                    ]</div><div>                },</div><div>                {</div><div>                    &quot;pattern&quot;: &quot;/bearer/*&quot;,</div><div>                    &quot;roles-allowed&quot;: [</div><div>                        &quot;user&quot;</div><div>                    ]</div><div>                },</div><div>                {</div><div>                    &quot;pattern&quot;: &quot;/admins/*&quot;,</div><div>                    &quot;roles-allowed&quot;: [</div><div>                        &quot;admin&quot;</div><div>                    ]</div><div>                },</div><div>                {</div><div>                    &quot;pattern&quot;: &quot;/users/permit&quot;,</div><div>                    &quot;permit&quot;: true</div><div>                },</div><div>                {</div><div>                    &quot;pattern&quot;: &quot;/users/deny&quot;,</div><div>                    &quot;deny&quot;: true</div><div>                }</div><div>            ]</div><div>        }</div><div>    ]</div><div><br></div><div><br></div><div>}</div></div></div></div>