Skip to main content

A user-browser driven SAML authentication tool for AWS

Project description

Google SAML Auth

This is a utility to obtain temporary Amazon Web Services (AWS) Security Token Service (STS) credentials for use on the local Command Line Interface (CLI).

This is an enhancement on the popular AWS Google Auth application, which uses a requests library to authenticate to Google before authenticating to AWS via SAML.

This application works similarly, however bypasses the need to authenticate into Google by using the user's existing Google web browser session to post the SAML assertion used for AWS authentication back to this application via local HTTP callback.

Getting Started

This project relies on Python (specifically, we've only tested on Python 3). Please first install Python3 using Brew

brew install python

You'll then need to configure profiles to use in your ~/.aws/config file. An example below:

[profile profile-name]
region = ap-southeast-2
account = 123456789012
google_config.google_idp_id = ABCDE1234
google_config.role_name = production-engineer
google_config.google_sp_id = 000000000000

Running the application

Ready? Start the app with the following command

python3 google-saml-auth.py --profile profile-name

Administrator Instructions

// TODO: How to setup application in Google SAML Console

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-google-saml-2023.1014.14.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file aws-google-saml-2023.1014.14.tar.gz.

File metadata

File hashes

Hashes for aws-google-saml-2023.1014.14.tar.gz
Algorithm Hash digest
SHA256 08ecc8db41292fa034e3261652c58a877a0f61b44f2102978c8807642af522bc
MD5 e5fc2b85994979f767c78be2e532934b
BLAKE2b-256 fcb7da04a673ce483f53ff25beaee9b25250c9aec20ce3dbaf4e7c8de95100fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page