<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">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<br>
      <br>
      On 2.9.2014 23:25, Rodrigo Sasaki wrote:<br>
    </div>
    <blockquote
cite="mid:CANLOgwBcojMiQUQZk59OFiCuMqgsnqSjawF2EpgVg7iy2zqwcA@mail.gmail.com"
      type="cite">
      <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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>