pending refactor common client components out of the basic_auth implementation