title: What int value gets used for ServletRequestAttributes scope?
body: <p>How does one know what value to give for the <code>scope</code> parameter when requesting an attribute value from a <code>ServletRequestAttributes</code> object?  </p>
  
  <p>In particular, I would like to get the value of the <code>_csrf</code> attribute of a request sent to the Authorization Endpoint of <a href="https://github.com/spring-guides/tut-spring-security-and-angular-js/tree/master/oauth2/authserver" rel="nofollow">this GitHub example app</a>.  I have a <code>CustomOAuth2RequestFactory</code> set up to contain the call to the <code>ServletRequestAttributes.getAttribute("_csrf", scope)</code> method, but how do I know what value to enter as the <code>scope</code> in order to get the correct <code>_csrf</code> value?  </p>
  
  <p>Here is <a href="https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/context/request/ServletRequestAttributes.html#getAttribute-java.lang.String-int-" rel="nofollow">a link to the API</a>.  </p>
  
  <p>Also, I found <a href="http://docs.spring.io/spring/docs/3.0.0.M3/reference/html/ch04s04.html" rel="nofollow">this link to the Spring documentation for bean scopes</a>, but how should one reference one of the scopes in the method call shown above?  Simply typing in the String name of a scope results in a compilation error warning in eclipse for trying to pass a String as an int.</p>