@maccuaa/intellitrust-admin-sdk@5.19.0
This is a JavaScript client for the Entrust Datacard IntelliTrust Administration API. This module can be used in the following environments:
It can be used in both TypeScript and JavaScript projects.
Installation
npm install @maccuaa/intellitrust-admin-sdk --save
Usage
NOTE: Make sure to replace the configuration values in the examples with the values from your IntelliTrust account!
import * as AdminSDK from "@maccuaa/intellitrust-admin-sdk";
const basePath = "https://entrust.us.trustedauth.com";
const credentials: AdminSDK.AdminApiAuthentication = {
applicationId: "792130ae-fe2a-4a83-beb6-afc4306ac9fe",
sharedSecret: "b_Zv2IRQZe90ENkK59pzFQYrq1aZUJExvv4s7MJM53Q"
};
const sdk = new AdminSDK.API({
basePath
});
const authResponse = await sdk.authenticateAdminApiUsingPOST(credentials);
const { authToken } = authResponse.data;
sdk.setApiKey(authToken);
const listResponse = await sdk.listAuthApiApplicationsUsingGET();
console.log(listResponse.data);
Help
For more information on how to use the APIs please refer to the IntelliTrust Administration API documentation.