The aim for this is to create a general purpose CLI ADFS login with a limited set of trusted dependencies.
It's available on PyPI. Install by running pip install adfs-aws-login
.
The executable is called adfs-aws-login
. Log in with default profile by simply running adfs-aws-login
or specify a profile with adfs-aws-login --profile [profile]
.
See adfs-aws-login -h
for more options.
If the environment variable ADFS_DEFAULT_PASSWORD
is defined, that will be used as the password.
Configure the profiles in $HOME/.aws/config
. Following is an example with all supported configuration keys (and a few aws default ones):
[profile example]
region=us-east-1
output=json
adfs_login_url=https://login.example.com/adfs/ls/IdpInitiatedSignOn.aspx?loginToRp=urn:amazon:webservices
[email protected]
adfs_role_arn=arn:aws:iam::1234567890:role/DeployRole
adfs_session_duration=8