title: intercetpUrlMap causes Error 310 (net::ERR_TOO_MANY_REDIRECTS)
body: <p>Following problem: I have a grails-application running on a server and I want to restrict access to all the content by using <strong>spring-security-plugin</strong>.</p>
  
  <p>So I created following interceptUrlMap:</p>
  
  <pre><code>interceptUrlMap = [
              '/**': ['IS_AUTHENTICATED_FULLY'],
          ]
  </code></pre>
  
  <p>But then a 'Error 310 (net::ERR_TOO_MANY_REDIRECTS)' occurs. If I just secure some controllers, it works fine without any errors.</p>
  
  <p>How can I avoid this error? (I need to secure the whole content, this includes also some generated files from my grails-app)</p>
  
  <hr>
  
  <h2>Solved!</h2>
  
  <p>The failure was, that you had to be authenticated fully for the login page, so it was an endless loop.</p>
  
  <p>After having a look at this <a href="http://groovyguts.wordpress.com/2010/02/01/excluding-the-login-page-from-grails-security/" rel="nofollow">blogpost</a>,</p>
  
  <p>I changed my interceptUrlMap into following:</p>
  
  <pre><code>interceptUrlMap = [
              '/login/**' :['IS_AUTHENTICATED_ANONYMOUSLY'],
              '/**': ['IS_AUTHENTICATED_FULLY'],
          ]
  </code></pre>
  
  <p>Have a look at the blogpost (link above) if you have the same problem.</p>
  
  <p>Greetings,
  Beasty</p>