Home

Awesome

xconnect-odata-proxy

A simple node.js proxy to access xConnect's oData API in Sitecore 9

The oData API in xConnect requires client certificate authentication. This becomes an issue if you want external systems that dont support client cert authentication to use the tool. The proxy handles the authentication for you by loading in data from .key and .pem files.

Creating your key and certs

Configuring

Change the variables at the top of the script accordingly:

var xConnectHost = 'xp0.xconnect'; - the host name of your xConnect instance
var proxyHost = 'localhost'; - the host anem of your proxy server
var proxyPort = '5060'; - the port you want it to run on
var keyFile = 'server.key'; - The key file you created
var clientCertFile = 'cert.pem'; - The client cert
var siteCertFile = 'sitecert.pem'; - The site's certificate

Running the proxy

  node npm-install 
    node xconect-odata-proxy 

Troubleshooting