Almost working multi provider & authentication system