title: Null when injecting SpringSecurityService into Filter in Grails
body: <p>I'm trying to use SpringSecurityService in a filter to get currently logged in user. The problem is that I got null and cannot get the current user. </p>
  
  <pre><code>class ApplicationFilters {
  
     def springSecurityService
  
     def filters = {
        all(controller:'*', action:'*') {
  
           after = { Map model -&gt;
  
              def userName=springSecurityService.currentUser
           }
        }
     }
  }
  </code></pre>
  
  <p>I tried also to get params map from the filter and I got also null. What should I do to solve this?</p>
  
  <p>Thanks,</p>