@maccuaa/intellitrust-auth-sdk

v5.22.0
JavaScript client for @maccuaa/intellitrust-auth-sdk
axios typescript openapi-client authentication intellitrust @maccuaa/intellitrust-auth-sdk

@maccuaa/[email protected]

This is a JavaScript client for the Entrust Identity as a Service Authentication API. This module can be used in the following environments:

  • Node.js
  • Webpack
  • Browserify

It can be used in both TypeScript and JavaScript projects.

Installation

npm install @maccuaa/intellitrust-auth-sdk --save

Usage

NOTE: Make sure to replace the configuration values in the examples with the values from your Identity as a Service account!

import * as AuthSDK from "@maccuaa/intellitrust-auth-sdk";

const basePath = "https://entrust.us.trustedauth.com";

const queryParms: AuthSDK.UserAuthenticateQueryParameters = {
  userId: "john.doe",
  applicationId: "d2f37667-253b-4260-aab1-6131f1d83fe4"
};

// Create a new instance of the API.
const sdk = new AuthSDK.API({
  basePath
});

// Get the user's authenticators that are available to authenticate with
const response = await sdk.userAuthenticatorQueryUsingPOST(queryParms);

// Print the response.
console.log(response.data);

Help

For more information on how to use the APIs please refer to the Identity as a Service Authentication API documentation.

npm i @maccuaa/[email protected]

Metadata

  • ISC
  • Whatever
  • Andrew MacCuaig
  • released 12/18/2021

Downloads

Maintainers