Having Atmosphere websockets compatible with Oauth2.

I found an easy way to have both options compatible. The solution was inside "BearerTokenExtractor" class of Spring Security OAuth2: "bearer type allows a request parameter as well".