Allow passing in a custom connection object to authenticate, which allows
multiple docker remote api connections at the same time