alvarosanchez/grails-spring-security-rest — pull request #141 by sbrady (2014-11-11 04:55:34+00:00)
Title: Fixes the "java.lang.IllegalStateException: Cannot forward after respons...

Fixes issue [#98].
When an anonymous user without a token accesses an anonymous endpoint.
It was giving a 500 and throwing "java.lang.IllegalStateException: Cannot forward after response has been committed"
It now gives a 200.

- The main issue was in the BearerTokenReader as it was sendingError,
- Moved all the error handling logic to the BearerTokenAuthenticationFailureHandler
[#98]