updated apiconnector to automatically authenticate to api