There&#39;s s pattern to handle the back button during flows. It&#39;s that a post should never render a view but redirect (HTTP get) to the failure or success view. <br><br><a href="http://www.codeproject.com/Tips/433399/PRG-Pattern-Post-Redirect-Get">http://www.codeproject.com/Tips/433399/PRG-Pattern-Post-Redirect-Get</a><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 20, 2016 at 7:22 PM Bill Burke &lt;<a href="mailto:bburke@redhat.com">bburke@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div>On 1/20/2016 3:49 PM, Stian Thorgersen
      wrote:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">One additional thought. Maybe we could add a field to
        autheticators to say if they support back, cancel or nothing.
        Then the flow would allow going back if previous supports back.
        It would allow cancel if all supports it, or nothing is one says
        nothing</p>
      <div class="gmail_quote">On 20 Jan 2016 19:48, &quot;Stian Thorgersen&quot;
        &lt;<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;
        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">Firstly, let&#39;s drop KEYCLOAK-2325 from 1.8 and
            see if we can fix it for 1.9.
            <div><br>
            </div>
            <div>Secondly, the back button should not navigate backwards
              in the flow. Also, the refresh button should just
              redisplay the page as it does now (ignoring the post). A
              couple ideas to improve things though:</div>
            <div><br>
            </div>
            <div>1) Set cache-control to &quot;Cache-Control: no-store,
              must-revalidate, max-age=0&quot;. This should force a reload of
              the page when the user clicks the back button</div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br></div><div bgcolor="#FFFFFF" text="#000000">
    Really?  That&#39;s cool then, this will basically &quot;disable&quot; the back
    button :)  I&#39;ll try it out.</div><div bgcolor="#FFFFFF" text="#000000"><br>
    <br>
    <blockquote type="cite">
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div>2) Can we add a back link to some steps in the flow?</div>
            <div>3) Can we add a cancel link to some steps in the flow?</div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br></div><div bgcolor="#FFFFFF" text="#000000">
    You can reset the flow to the beginning, but can&#39;t go back one step.</div><div bgcolor="#FFFFFF" text="#000000"><br>
    <br>
    <pre cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a></pre>
  </div>

_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></blockquote></div>