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-mfaConfiguration
Set the following environment variables:
- IDP_URL - Identity Provider login URL,
- AWS_PROFILE -
aws-cliprofile name.
Usage
aws-saml-session-mfa