Skip to content

MFA support like in other AWS SDKs #1345

@JPLachance

Description

@JPLachance

Hello,



We started to use the switch role feature a couple of months ago and we are using the MultiFactorAuthPresent condition, therefore forcing users to be logged in using their MFA and it’s working perfectly.

It’s working in the web console, it’s working with AWS CLI and with many AWS SDKs (like boto3 or the Go SDK) since those SDKs are reading the mfa_serial field in the ~/.aws/credentials file.



I tested the most recent Java SDK for AWS (1.11.213) and it seems like it’s not supported. 

Would it be possible to read the mfa_serial field in the .aws/credentials and then ask the MFA when starting a Java process?



See a related issue in the Go SDK: aws/aws-sdk-go#842

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions