Skip to content

Utility to help with AWS credential management via SAML

Notifications You must be signed in to change notification settings

jt-shippit/aws-saml-login

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-saml-login

Utility to help with AWS credential management via SAML. This uses puppeteer and chromium to go to a user specified login url. After following all redirects and allowing the user to login, it will intercept the SAMLResponse and make a call to Amazon STS to get temporary credentials. These can then be used via the AWS profiles feature.

Install

$ npm install -g aws-saml-login

Usage

Usage: aws-saml-login [options] <login_url>

A simple cli utility to get temporary AWS credentials via a SAML endpoint

Options:
  -V, --version                 output the version number
  -b, --basic_auth              use basic auth from the cli to login, this will run the browser in
                                headless mode
  -d, --duration <secs>         session duration in seconds (default: "3600")
  -p, --profile <profile_name>  default profile to use
  -r, --refresh <profile_name>  attempts to refresh an existing profile using config options saved
                                in "~/.config/aws-saml-login/config".  Will create the entry if it
                                does not exist.

  -a, --role_arn <role_arn>     role ARN to login as
  -h, --help                    display help for command

About

Utility to help with AWS credential management via SAML

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.8%
  • JavaScript 1.2%