Overview of saml2aws
mastersaml2aws is a CLI tool that enables you to log in to an Identity Provider (IdP) and retrieve temporary AWS credentials. It supports various IdPs including ADFS, AzureAD, PingFederate, Okta, KeyCloak, Google Apps, Shibboleth, F5APM, Akamai, OneLogin, NetIQ, Auth0, and JumpCloud.
The workflow follows these steps:
- Setup an account alias.
- Prompt user for credentials.
- Log in to the Identity Provider using form-based authentication (utilizing
playwright-goto run a sandbox chromium window). - Build a SAML assertion containing AWS roles.
- Optionally cache the SAML assertion (unencrypted).
- Exchange the role and SAML assertion with the AWS STS service to get temporary credentials.
- Save these credentials to an AWS profile named
saml.