broamski / aws-mfa

Manage AWS MFA Security Credentials
MIT License
1.01k stars 163 forks source link

Use the user's only mfa device if all else fails #41

Open ztane opened 5 years ago

ztane commented 5 years ago

When using mfa for an IAM user access tokens there is only one device; the only result in session.client('iam').list_mfa_devices(). Would be worthwhile to try to default to that if not configured otherwise.