follow contract of AbstractAuthenticationProcessingFilter.attemptAuthentication(HttpServletRequest, HttpServletResponse) (making SocialAuthenticationFailureHandler and #93 obsolete) to fix adding of connections to authenticated users. Additionally users token.getConnection() instead of token.getPrincipal() which is always null.
follow contract of
AbstractAuthenticationProcessingFilter.attemptAuthentication(HttpServletRequest, HttpServletResponse)
(making SocialAuthenticationFailureHandler and #93 obsolete) to fix adding of connections to authenticated users. Additionally userstoken.getConnection()
instead oftoken.getPrincipal()
which is always null.