<div dir="ltr">I think it does the same thing, but on the JBoss 7 adapter it follows a different flow, if there is anything on the error query param, it redirects to status 400, and it doesn't work the same way as the Wildfly one. There's a TODO commentary there, maybe that's what's missing. Not sure.<div>
<br></div><div>I see it on line 193 of the <font face="courier new, monospace">OAuthRequestAuthenticator</font><i> </i>class</div><div><br></div><div>Is this how it should behave?</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Sep 3, 2014 at 4:36 AM, Marek Posolda <span dir="ltr"><<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
I would say that this is not a bug but expected behaviour. If user
press "Cancel", keycloak will redirect you to your application
with "error=access_denied" so it's up to your application how to
handle this situation. You can either redirect user to public
resource or display some page with error like "Access is denied
for you because you rejected to login".<br>
<br>
I think that this behaviour should be on both AS7 and Wildfly.
I've just tried with Wildfly appliance distribution and it works
(When pressing cancel it redirects me to my app with 400 and
"error=access_denied"). Quite strange that you are seeing
different behaviour with Wildfly.<br>
<br>
Marek<div><div class="h5"><br>
<br>
On 2.9.2014 23:25, Rodrigo Sasaki wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">I was testing keycloak and I came across something
weird.
<div><br>
</div>
<div>I try to access a protected resource, so I get redirected
to the Keycloak login page, if I hit cancel without doing
anything, I get a response with status 400 and a query param
appears like this:</div>
<div><br>
</div>
<div><b>error=access_denied</b></div>
<div><b><br>
</b></div>
<div>The same does not happen on Wildfly.</div>
<div><br>
</div>
<div>Should I open a JIRA for this?<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<font face="Times New Roman">Rodrigo Sasaki</font></div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</div>