title: Unable to redirect from login page after authentication with JAAS
body: <p>After the user has logged in I want to make a <strong>redirect</strong> if <code>/login</code> is accessed again, so that the user cannot access the login form if he/she is <strong>already authenticated</strong>.</p>
  
  <p>I am using <strong>Jetty 8</strong> and I found in the <a href="http://archive.eclipse.org/jetty/8.0.0.M2/xref/org/eclipse/jetty/security/authentication/FormAuthenticator.html#168" rel="nofollow">FormAuthenticator.java:168</a> method <code>validateRequest</code> that if the user accesses the login or error page, the user is <strong>never authenticated, eventhough that might be the case</strong></p>
  
  <pre><code>if (isLoginOrErrorPage(URIUtil.addPaths(request.getServletPath(),request.getPathInfo())))
      return Authentication.NOT_CHECKED;
  </code></pre>
  
  <p>How can I fix this?</p>