'Invoke authentication if necessary.'

def Authenticate(self):

    logger.info('Connecting    to    %s%s', self.host_port, self.url_path)
    if self.dry_run:
        self.authenticated = True
        return
    remote_api_stub.MaybeInvokeAuthentication()
    self.authenticated = True
