New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

samlogin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

samlogin

This tool uses Puppeteer (https://github.com/GoogleChrome/puppeteer) to intercept SAML logins to AWS and store the credentials in a credentials file.

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

samlogin

Build Status
This tool uses Puppeteer (https://github.com/GoogleChrome/puppeteer) to intercept SAML logins to AWS and store the credentials in a credentials file.

samlogin was inspired heavily by the SAML to STS Keys extension (https://github.com/prolane/samltoawsstskeys) by G.T.C. (Gerard) Laan.

Installation

  • Install Node.js (tested on v8.11.4).
  • Clone the project repository to your preferred location.
  • Navigate to the project directory.
  • Install the package dependencies with yarn install or npm install.
  • Create your configuration file in the project directory.

Configuration

Configuration is managed with a yaml file. samlogin will attempt to find the configuration file in the following paths (in order):

  • An exact path specified by the --config parameter
  • %LOCALAPPDATA\samlogin\config.yaml
  • $XDG_CONFIG_HOME/samlogin/config.yaml
  • $HOME/Library/Preferences/samlogin/config.yaml
  • ~/.samlogin.yaml

Configuration Keys

  • AuthUrl - The URL of your Identity Provider which accepts your credentials
  • AccountAliases - A sequence of maps from account number to alias

An example configuration:

---
# Example Configuration File

AuthUrl:  # The login URL of your IDP - E.g.:
          # https://accounts.google.com/o/saml2/init.sso?...

# Use "Prod" in place of 123456789012 and Dev in place of 210987654321in the
# profile name.
AccountAliases:
  - AccountNumber: '123456789012'
    Alias: Prod
  - AccountNumber: '210987654321'
    Alias: Dev

Usage

samlogin [--config <path>]

Calling the command will launch an embedded instance of Chromium and navigate to AuthUrl. Once you log in, your IDP will forward the browser to the AWS SAML endpoint and the credentials will be intercepted and written to ~/.aws/credentials.

FAQs

Package last updated on 16 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts