JSPM

aws-saml-session-mfa

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q19128F
  • License MIT

Create temporary AWS credentials using SAML provider. (supports MFA)

Package Exports

  • aws-saml-session-mfa
  • aws-saml-session-mfa/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aws-saml-session-mfa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

aws-saml-session-mfa

Create temporary AWS credentials using SAML provider.

This is an evolution of aws-saml-session package which adds support for multi-factor authentication (MFA) flows.

It is using a web browser automation library Puppeteer to go through the standard login process (including any MFA if required), then intercepts the SAML response from Identity Provider and creates the temporary AWS credentials to be used by any CLI tools.

Installation

npm install -g aws-saml-session-mfa

Configuration

Set the following environment variables:

  • IDP_URL - Identity Provider login URL,
  • AWS_PROFILE - aws-cli profile name.

Usage

aws-saml-session-mfa