<div dir="ltr"><div>I can't reproduce this issue. We have tests that verify query parameters are including in the redirect uri, I've also verified this manually with our demo (<a href="http://localhost:8180/customer-portal/customers/view.jsp?test=test2">http://localhost:8180/customer-portal/customers/view.jsp?test=test2</a>).</div><div><br></div><div>A rest service should be bearer-only though, it shouldn't redirect to login page at all.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 February 2016 at 11:43, Andrey Saroul <span dir="ltr"><<a href="mailto:andrey.saroul@gmail.com" target="_blank">andrey.saroul@gmail.com</a>></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>Recently I encountered with unexpected behavour of Keycloak.<br>I did a simple rest service and had deployed Keycloak on one the same machine.<div>I'm using keycloak 1.7.0 with WildFly 9.0.2<br></div><br></div>My root URL of rest service is: /rest<br><div>In Keycloak admin console I have configured my rest service this way: Client Protocol: openid-connect, Valid Redirect URIs: /rest/*<br></div><div><br></div><div>I tried to access my test page of rest service by url: <a href="http://localhost:8080/rest/test?id=1" target="_blank">http://localhost:8080/rest/test?id=1</a><br></div><div>I got redirect to login form, entered my login and password. That's fine, browser got valid jsessionid from Keycloak, BUT at the end of redirect chain I end up with root url of my webapp (<a href="http://localhost:8080/rest" target="_blank">http://localhost:8080/rest</a>), but I tried to access different location (<a href="http://localhost:8080/rest/test?id=1" target="_blank">http://localhost:8080/rest/test?id=1</a>) I expect to be redirected to the url I entered in the first place.<br></div><div>I wonder, is this a bug or a misconfiguration issue?<br></div></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>