Encapsulate auth config in a dedicated object.