Client certificate authentication with $http request


#1

I am using my Ionic app to access a web api. The api requires presentation of a client certificate to authenticate the request. I thought I could include the certificate in the request, then send along with the $http request:

   var request = {
      method: verb,
      url: parser.href,
      timeout: AppSettings.postTimeout,
      data: data
    };

   $http(request)
      .success(function(data) {
        console.log("Received settings data via HTTP");
        if(data != null && data.length > 0) {
          self.settingsCache.put(cacheKey, data);
        }
        $ionicLoading.hide();
        deferred.resolve(data);
      })
      .error(function() {
        console.log("Error while making settings HTTP call.");
        $ionicLoading.hide();
        deferred.reject();
      });

However, based on my Google research, it appears that $http does not support sending a client certificate.

Is there a way to accomplish client certificate authentication from an Ionic app?

Thanks.