venth / aws-adfs

Command line tool to ease aws cli authentication against ADFS (multi factor authentication with active directory)
MIT License
286 stars 101 forks source link

fails creating new profile on Windows #429

Open oskotsky opened 7 months ago

oskotsky commented 7 months ago

In Windows 10 aws-adfs fails to create a brand-new profile: (myvenv) PS C:\Users\user\Desktop\myvenv> aws-adfs reset --profile=profile-name Profile: 'profile-name' has been wiped out (myvenv) PS C:\Users\user\Desktop\myvenv> aws-adfs login --adfs-host=adfs.domain --profile=profile-name --no-sspi --region=us-west-2 --session-duration 28800 --role-arn arn:aws:iam::0123456789123:role/user-role

The same works as expected in Linux: (.venv) $ aws-adfs reset --profile=profile-name Profile: 'profile-name' has been wiped out (.venv) $ aws-adfs login --adfs-host=adfs.domain --profile=profile-name --region=us-west-2 --session-duration 28800 --role-arn arn:aws:iam::0123456789123:role/user-role 2024-02-21 10:53:05,235 [authenticator authenticator.py:authenticate] [3281-MainProcess] [140107912224768-MainThread] - ERROR: Cannot extract saml assertion from request's response. Re-authentication needed? Username:

Please advise.