Refactoring so as to allow SocialAuthenticationFilter to be used with this module