title: Only Allow Login With Spring Security For Users With Certain Roles
body: <p>I have a login page where I want to permit everyone to access the login.jsp. For example,</p>
  
  <p><code>&lt;intercept-url pattern="/login.jsp" access="permitAll()" /&gt;</code></p>
  
  <p>But I only want to allow access to users with say ROLE_ADMIN. A user with ROLE_USER may be able to successfully authenticate, but they should be redirected back to the login.jsp. What would be the best way to achieve this?</p>