1.0.1 • Published 6 years ago

iam-auth v1.0.1

Weekly downloads
-
License
-
Repository
github
Last release
6 years ago

IAM Authentication

The IAM Authentication service codenamed Submarine is a NodeJS library designed to provide methods to generate / validate IAM tokens.

Prerequisites

  1. Node.js

Project Setup

  1. Clone repository

    git clone https://github.com/nutanix/submarine.git
  2. Switch to the recommended Node version as specified in package.json (Can use NVM to manage Node versions)

  3. Install dependencies from the root folder

    npm install
  4. Require IAM library, loads default config from 'config/iam.js'

    var iam = require('./lib')
  5. To initialize IAM library with custom config, contact team members for 'config/local.js' file

    iam.initialize('./config/local')
  6. For IAM token generation, pass registered audience URL

    iam.getIAMToken('<audience_url>')
  7. For IAM token validation, pass IAM token

    iam.validateIAMToken('<iam_token>')
1.0.1

6 years ago

1.0.0

6 years ago