Authentication

  • Click on Set Up Authentication in the Authentication section of the Integration Home page.

  • Select Session Auth and click Save.

  1. Configure the following Session Auth Fields as mentioned below and click Continue.

    • A string type field with key username
    • A password field with key password
    • A computed field with key url
    • A computed field with key JWT

  2. In the Configure a Token Exchange Request section:

    Switch to Code Mode and enter the below code in Configure a Token Exchange Request section. Modify the <HOST_NAME> value to your actual host name and click Save & Continue.

    Copy
    const options = {
    url: 'https://<HOST_NAME>/rest/api2/login',
    method: 'POST',
    headers: {
    'content-type': 'application/x-www-form-urlencoded',
    'accept': 'application/json',
    'Authorization' : "Basic " + Buffer.from(bundle.authData.username + ":" + bundle.authData.password).toString('base64')
    },
    params: { 
    },
    body: {
    'username': bundle.authData.username,
    'password': bundle.authData.password
    }
    }
    return z.request(options)
    .then((response) => {
    response.throwForStatus();
    const results = z.JSON.parse(response.content);
    return results.results[0]
    });
  1. In the Configure a Test Request & Connection Label section, enter the API endpoint URL {{bundle.authData.url}}data/USER using GET HTTP Method. Then, click Show Options in the lower right to expand the section. Update HTTP Headers tab as show in the screenshot below. Once done, click Save & Continue.

  1. You are prompted to Sign in to Infinite Blue Platform account to test your Authentication. If you are already signed, select the existing account. When done, click Test Authentication button. On successful request, click Save & Finish.

You have successfully set up authentication for our Zapier Integration. You can now create Triggers or Actions.