Installing Adapters (Optional)
  • 22 Jul 2024
  • Dark
    Light
  • PDF

Installing Adapters (Optional)

  • Dark
    Light
  • PDF

Article summary

Adding a new adapter

IAP uses network and OSS adapters to facilitate the integration of IAP with various systems and applications. To add a new adapter to IAP, the adapter must be installed under node_modules within the IAP installation directory.

Users must have an updated npm registry to install adapters. Please contact your Itential Customer Success representative for assistance.

An adapter should be installed "from source" without using a package manager. For custom adapters, use the appropriate scope (e.g., “@customername” or “@customercreatedvalue”) to which the adapter source applies.

Example

cd /opt/pronghorn/current/node_modules/@itentialopensource
git clone git@gitlab.com:itentialopensource/adapters/persistence/adapter-db_mongo
cd adapter-db_mongo
npm ci

Always use the appropriate scope declaration when adding custom adapters to IAP under node_modules within the IAP installation directory.


When you must upgrade, or change versions of an adapter, run the following.

Be sure to checkout the branch you want to use.


cd /opt/pronghorn/current/node_modules/@itentialopensource/adapter-db_mongo
git checkout <branchname>
git pull

# If you need to see a list of all the tags/version numbers: `git tag`.

git checkout <your desired version number>
git pull
rm -rf node_modules
npm ci

Instantiate the adapter

Once the adapter is installed, restart IAP and the adapter will be auto-discovered during IAP startup and become available when adding an adapter via the IAP UI.

To add an available adapter to IAP:

  1. Login to IAP and select Admin Essentials in the left navbar.

    Figure 1: Admin Essentials
    03-IAP-Home

  2. Click the plus (+) icon in the top toolbar of the Admin Essentials application to open the Create dialog.

  3. Select Adapter from the dropdown menu, enter the desired name of the adapter and select the type, and then click Save.

    Figure 2: Create Adapter
    04-createAdapter

  4. A skeleton JSON object of the Service Config for the adapter will be created and can be edited to match your environment by enabling the Service Config editor using the toggle switch (top-right).

    Figure 3: Adapter Configuration
    05-adapterProperties

  5. Click Save to retain your config changes for the adapter.

    Figure 4: Save Config
    06-adapterConfig

  6. The adapter will display under the Adapters menu in the left navbar, and from the Adapters collection view when you click the search icon (magnifying glass) in the top toolbar and select the Adapters tab.

    Figure 5: Adapters Collection
    07-adaptersCollectionView

  7. Adapter connectivity can be confirmed from the Admin Essentials home page in the Alerts dashboard.

    Figure 6: Alerts
    11_Alerts

Import the service config for an adapter

Itential enables you to build your own custom adapters to integrate specific network applications with IAP. Use the following steps to import the service config for your custom adapter.

From the Admin Essentials home page:

  1. Click the Import icon in the top toolbar to display the Import dialog.

  2. Select Adapter from the dropdown.

  3. You can import (upload) your Adapter file by drag-and-drop, or click Browse Files to find and select the Adapter you want to import.

    Figure 7: Adapter Import
    08_adapterImport

  4. Once the Adapter is imported, the name of the Adapter will pre-populate from the file, along with a description, in the Import modal. You can change the description, as needed, to provide specific information for your import and to better communicate what the adapter is used for within your platform.

  5. Once you click the Import button, and upon successful import, the Adapter will be added to the collection list in the left sidebar.

Figure 8: Adapters Collection

06_adaptersCollectionList


Troubleshooting After Adding Adapter

To help with login issues and any other problems after adding an adapter, please contact Itential Product Support.

User Cannot See Applications

Upon browsing to the IAP Web UI as the admin@pronghorn user for the first time, you will be presented with the following message:

You currently don't have access rights to any apps. If you think that's a mistake, please ask your Administrator for help.

Be sure to add permissions to the admin group for your applications.

Figure 9: Edit Group in Authorization

Edit Group in Authorization


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.