Metadata-Version: 2.4
Name: gw2aws
Version: 0.0.1
Summary: SAML login to AWS via Google Workspace using Playwright
Project-URL: Repository, https://github.com/eggplants/gw2aws
Author: eggplants
License: MIT
License-File: LICENSE.txt
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: boto3>=1.28
Requires-Dist: install-playwright>=0.1
Requires-Dist: playwright>=1.40
Requires-Dist: pyotp>=2.9
Description-Content-Type: text/markdown

# gw2aws

[![PyPI version](
  <https://badge.fury.io/py/gw2aws.svg>
  )](
  <https://badge.fury.io/py/gw2aws>
) [![CI](
  <https://github.com/eggplants/gw2aws/actions/workflows/ci.yml/badge.svg>
  )](
  <https://github.com/eggplants/gw2aws/actions/workflows/ci.yml>
)

SAML login to AWS via Google Workspace using Playwright.

Based on the behavior of the [`saml2aws`](https://github.com/Versent/saml2aws) Browser provider, `gw2aws` enables automated authentication for Google Workspace SSO.

## Install

```bash
pipx install gw2aws
# or
pip install gw2aws
```

## Requirements

You must have a Google Workspace account with [2FA enabled and TOTP registered as an authentication method](https://support.google.com/accounts/answer/1066447).

## Usage

```bash
gw2aws configure --profile myprofile

gw2aws login --profile myprofile
gw2aws login --profile myprofile --no-headless

aws --profile myprofile sts get-caller-identity
```

## References

- <https://github.com/Versent/saml2aws>
- <https://aws.amazon.com/jp/blogs/security/how-to-implement-a-general-solution-for-federated-apicli-access-using-saml-2-0/>
