<p dir="ltr">Hi,</p>
<p dir="ltr">Is there any updates? The app is protected by proxy but after login is successful and is not redirect back to app and stay at proxy url</p>
<div class="gmail_quote">On Feb 17, 2015 4:54 PM, "Chen Keong Yap" <<a href="mailto:chenkeong.yap@izeno.com">chenkeong.yap@izeno.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>When i access my app from <a href="http://localhost:8080/customer-portal" target="_blank">http://localhost:8080/customer-portal</a> and it was redirected to keycloak login page (<a href="https://192.168.1.10:8443/auth" target="_blank">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" target="_blank">http://localhost:8080/customer-portal</a> instead of <a href="http://localhost:9080/customer-portal" target="_blank">http://localhost:9080/customer-portal</a>. Can someone advise what'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> "target-url": "<a href="http://localhost:8082" target="_blank">http://localhost:8082</a>",</div><div> "bind-address": "localhost",</div><div> "http-port": "8080",</div><div> "https-port": "8443",</div><div> "keystore": "classpath:ssl.jks",</div><div> "keystore-password": "password",</div><div> "key-password": "password",</div><div> "send-access-token": true,</div><div> "applications": [</div><div> {</div><div> "base-path": "/customer-portal",</div><div> "error-page": "/error.html",</div><div> "adapter-config": {</div><div> "realm": "demo",</div><div> "resource": "customer-portal",</div><div> "realm-public-key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB",</div><div> "auth-server-url": "<a href="https://192.168.1.10:8443/auth" target="_blank">https://192.168.1.10:8443/auth</a>",</div><div> "ssl-required" : "external",</div><div><span style="white-space:pre-wrap">                </span>"enable-cors" : true,</div><div> "principal-attribute": "KEYCLOAK_NAME",</div><div> "credentials": {</div><div> "secret": "password"</div><div> }</div><div> }</div><div> ,</div><div> "constraints": [</div><div> {</div><div> "pattern": "/users/*",</div><div> "roles-allowed": [</div><div> "user"</div><div> ]</div><div> },</div><div><span style="white-space:pre-wrap">                                </span> {</div><div> "pattern": "/*",</div><div> "roles-allowed": [</div><div> "user"</div><div> ]</div><div> },</div><div> {</div><div> "pattern": "/call-bearer/*",</div><div> "roles-allowed": [</div><div> "user"</div><div> ]</div><div> },</div><div> {</div><div> "pattern": "/bearer/*",</div><div> "roles-allowed": [</div><div> "user"</div><div> ]</div><div> },</div><div> {</div><div> "pattern": "/admins/*",</div><div> "roles-allowed": [</div><div> "admin"</div><div> ]</div><div> },</div><div> {</div><div> "pattern": "/users/permit",</div><div> "permit": true</div><div> },</div><div> {</div><div> "pattern": "/users/deny",</div><div> "deny": true</div><div> }</div><div> ]</div><div> }</div><div> ]</div><div><br></div><div><br></div><div>}</div></div></div></div>
</blockquote></div>