@maccuaa/intellitrust-auth-sdk
TypeScript icon, indicating that this package has built-in type declarations

5.33.3 • Public • Published

@maccuaa/intellitrust-auth-sdk@5.33.3

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.

Package Sidebar

Install

npm i @maccuaa/intellitrust-auth-sdk

Weekly Downloads

53

Version

5.33.3

License

ISC

Unpacked Size

216 kB

Total Files

23

Last publish

Collaborators

  • maccuaa