- 22 Jul 2024
-
DarkLight
-
PDF
Installing Adapters (Optional)
- Updated on 22 Jul 2024
-
DarkLight
-
PDF
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:
-
Login to IAP and select Admin Essentials in the left navbar.
Figure 1: Admin Essentials
-
Click the plus (+) icon in the top toolbar of the Admin Essentials application to open the Create dialog.
-
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
-
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
-
Click Save to retain your config changes for the adapter.
Figure 4: Save Config
-
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
-
Adapter connectivity can be confirmed from the Admin Essentials home page in the Alerts dashboard.
Figure 6: 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:
-
Click the Import icon in the top toolbar to display the Import dialog.
-
Select Adapter from the dropdown.
-
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
-
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.
-
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
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
Related Reading
- For information on adapter integration, see IAP Integrations.
- Go to the Itential Open Source Repository for a library of all adapters.
- See Troubleshooting an Adapter for additional help information.
- See Adapters Technical Resources for a library of information related to adapters, including Itential's Adapter Builder.