EWD-1553 transfer logic for authenticating users from middleware-classes into authentication-backend for facebook and vk