This repository holds the code for a browser extension that allows users that use
Google Workspace (gsuite) as an IDP provider to login
to AWS using roles.
It also has a local service that updates the local client AWS credentials for the aws-cli.
This extension can be used as an alternative to aws-google-auth
and doesn't require filling credentials as long as your Google account is logged in to your browser, nor does it suffer from constant captchas.
The extension has been tested on Chrome and firefox.
- Refresh AWS Web Console session automatically to keep user logged in.
- Get temporary credentials for assumed role to use for CLI access.
- Autofill all available AWS roles for Google Workspace account.
- Automatically update local aws credentials file.
Available directly in Add-ons for Firefox:
- Clone this repository.
- Go to the Chrome Extensions page.
- Enable Developer Mode on the right side of the page.
- Press "Load Unpacked".
- Pick the
extension
folder in the cloned repository.
- Clone this repository.
- Delete the regular manifest.js and rename the manifest-firefox.js to manifest.js
- Go to Addons and themes in the hamburger menu.
- Click the wheel and then Debug Add-ons.
- Click Load Temporary Add-on... and select the manifest.json file.
First you will need to configure some properties in the Options menu. Each property has additional info that you can read to help you set it up properly.
When you are done, exit the Options menu. Now you can add your user's IAM role or roles or click the (A) button to initiate autofill.
Click on the slider to start the token auto refresh procedure. After enabling the refresh you can also click on the CLI button to get the temporary STS credentials.
The credentials updater service runs a minimalistic webserver on 127.0.0.1:31339 that listens requests for updates from the extension. To enabled this feature, click the toggle in the Options menu.
Linux users should use this version of the local service
netstat
- Clone this repo
cd aosvc
./install.sh
MacOS users will benefit from using the python version of the local service.
- Clone this repo
cd aosvc-python
./install.sh
More info here.