support mfa_serial by prompting for a token #2369
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
feature-request
A feature should be added or improved.
if you specify mfa_token in your config, then we set the serial_number param when creating an AssumeRoleCredentials: https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-sdk-core/lib/aws-sdk-core/shared_config.rb#L219
In the provider we will pass that to assume_role (https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-sdk-core/lib/aws-sdk-core/assume_role_credentials.rb#L51)
documentation: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/STS/Client.html#assume_role-instance_method
If we pass serial_number than we also need to pass the token_code (which is a time based OTP generated by the device)
The text was updated successfully, but these errors were encountered: