If request does not contain correct authentication, then use authentication already in SecurityContext.
Removed nullpointer when authenticate() got AuthenticationException.
Merge pull request #103 from MayGo/feature/rest-login-to-accept-cas-authentication

If request does not contain correct authentication, then use authentication already in SecurityContext.