We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

Does Composer targetting work for EZProxy IP addresses?

To make Piano Composer's IP address segmentation work with EZProxy, you will need to do the following:

  1. Request EZProxy to add the following to your stanza with Option NoX-Forwarded-For. This Option NoX-Forwarded-For restores EZproxy’s normal behavior of hiding the address of the remote user.

    In case your application is located on the Production US dashboard use:

    c2.piano.io https://c2.piano.io experience.tinypass.com https://experience.tinypass.com

    In case your application is located on the Production EU dashboard use:

    c2-eu.piano.io https://c2-eu.piano.io experience-eu.tinypass.com https://experience-eu.tinypass.com

    In case your application is located on the Production AP dashboard use:

    c2-ap.piano.io https://c2-ap.piano.io experience-ap.tinypass.com https://experience-ap.tinypass.com

    In case your application is located on the Production AU dashboard use:
    c2-au.piano.io
    https://c2-au.piano.io
    experience-au.tinypass.com
    https://experience-au.tinypass.com

    It should be this in your stanza config for a US dashboard application:

    HJ c2.piano.io\
    HJ https://c2.piano.io\
    HJ experience.tinypass.com\
    HJ https://experience.tinypass.com\
    DJ c2.piano.io\
    DJ https://c2.piano.io\
    DJ experience.tinypass.com\
    DJ https://experience.tinypass.com\
    
  2. When Step 1 is done, add the below code to your Composer integration script.

    If the user is accessing www-yourwebsitename-com.cptest.idm.oclc.org, then it will be:

    if (document.location.hostname == "www-yourwebsitename-com.cptest.idm.oclc.org") {
      tp.push(["setComposerHost", "https://c2-piano-io.cptest.idm.oclc.org" ]);
    }
    

    If the user is accessing www-yourwebsitename-com.idm.oclc.org, then it will be:

    if (document.location.hostname == 'www-yourwebsitename-com.idm.oclc.org') {
      tp.push(['setComposerHost', 'https://c2-piano-io.idm.oclc.org']);
    }
    

    If the user is accessing www-yourwebsitename-com.oclc.org, then it will be:

    if (document.location.hostname == 'www-yourwebsitename-com.oclc.org') {
      tp.push(['setComposerHost', 'https://c2-piano-io.oclc.org']);
    }
    

    Note, that you will need to replace the website/domain www-yourwebsitename-com with your own and use the Composer host base URL based on your dashboard's environment as provided in Step 1. For example, for the EU dashboard, the Composer host URL would start https://c2-eu-piano-io.*.

Once these are set up, Composer should be able to get the correct IP address from EZProxy for your Experience targeting.

Last updated: