If client pass 'nopage' in HTTP header, it indicates they expect 401 ins...

Hi,
If the grails app with spring security is being used by multiple clients. One client use login form. And another clients probably don't use login form (e.g. angularJS)

in this case, I want to differentiate the call. For angularJS, it will pass HTTP header (or other indicator) to indicate that it's expecting 401 instead of login form. So, I propose this modification in AjaxAwareAuthEntryPoint

Btw, I don't have full knowledge of spring security. if you know better solution, please kindly share with me.

Thanks :)