mydrive-aws-mfa 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 9d214b5697cc1f64dde658ca1c8217e3a910bfd581fee13e613f76adc87488df
4
- data.tar.gz: 91c6b30b669f9c337aee487d489570809949fe5a14e223ec9e07137e7cd713a2
2
+ SHA1:
3
+ metadata.gz: f5e3e6fc7b8528845f1ed026ce7dd4027cbac7c5
4
+ data.tar.gz: 57d12f89224ac77d0ca4c0260652f8c081c83e8c
5
5
  SHA512:
6
- metadata.gz: '0289523e85d277900b2df8e0ae1786181720647d1c8d6001ecf31d418f5a46d32399238d3c14a9eb17c078330d04f162108bd4bbed73f85d402988c9aa890d66'
7
- data.tar.gz: 69e07c31f4168e0373bad0f2e841df1782999165d09b66698c73a07c988157aa639d79214347ae835445d3765019d960351ee35f05ce11d009c6cfb3d388f454
6
+ metadata.gz: bb626343245b7313cb4e45e2962146a38c30545f259e06a145d9195e352dd3a57d7dde46fcc0849885066ba1503dbb95f1de10e153f7061b06a20f3475a615b5
7
+ data.tar.gz: ce04c6ab7a8052b5368efccac4dd41ea2944911f10d949513129c6f3806fbad17dcd0d06445e285d3b8ab53d6edacf10e9671f7133062e1afb8e9773203d9a00
@@ -62,9 +62,10 @@ class AwsMfa
62
62
  end
63
63
 
64
64
  def build_credentials_command(profile_config, token_code)
65
+ username = profile_config.mfa_serial.split("/").last
65
66
  "aws --profile #{profile_config.source_profile} --region eu-west-1 --output json sts assume-role " \
66
67
  "--duration-seconds #{@expiration_buffer_seconds} --role-arn #{profile_config.role_arn} " \
67
- "--role-session-name aws-mfa-session --serial-number #{profile_config.mfa_serial} --token-code #{token_code}"
68
+ "--role-session-name #{username} --serial-number #{profile_config.mfa_serial} --token-code #{token_code}"
68
69
  end
69
70
  end
70
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mydrive-aws-mfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MyDrive Solutions Ltd
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - aws-cli
93
93
  rubyforge_project:
94
- rubygems_version: 2.7.6
94
+ rubygems_version: 2.6.14.1
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Run AWS commands with MFA (MyDrive fork)