Revert "Replace _agent by a method and get_auth_info from constructor"

This reverts commit 5264afb53397d8264f2ef84996560a986df0478b.