aws-sdk-cognitoidentity 1.40.0 → 1.40.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50799f6fae88dd9ae9f831f613438846fc3ebad2a7de00485f10a87facd1a5a2
4
- data.tar.gz: a4c737ff4e4756555468271a08093ce1fd715343dc927327dddfde0bfaf26917
3
+ metadata.gz: d849ac9e7adc58f4161873832424e9a5e5a0d162be35207fb1d48a880a818e52
4
+ data.tar.gz: 59eafd6960ed25e69229616bb4c1b2deec59eb1ee83a23a196cce4c8e5767615
5
5
  SHA512:
6
- metadata.gz: '09681651525237c5fb4ca0e6a0c5b6aa16c5cebd689639041f6946df2c4cd57689f8e01f0576c140181ea0486ab85379d072ff004f26219fab676cf5e1fd7af1'
7
- data.tar.gz: 50998a4e794818d20deaefca04a6b28d894c9745cd301e11856d9a3cfafc9e191e7c8d8827d00e90fbed96e15e1910d1593372eb560e55fdcf9d71bde3ede28e
6
+ metadata.gz: c8ce7efccfdc3d370f96049db3f7ee063ca5568eebf81ea643b448161bd963c67fc7b79180b6fa3bd9934eea0c260755ac8e4b37cf87bbd2a26cd10d5d659d46
7
+ data.tar.gz: cd4ae43971a41655d3e6238c471754f471d61992ac208497ab9333fa8265c75c07bc09008c5239ddda1f5abb8f88539b5a70fa094cc35a9296dd9a8269a5b78b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.1 (2022-04-22)
5
+ ------------------
6
+
7
+ * Issue - Don't pass `:before_refresh` to Client constructors in `CognitoIdentityCredentials` (#2690).
8
+
4
9
  1.40.0 (2022-02-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.40.0
1
+ 1.40.1
@@ -1631,7 +1631,7 @@ module Aws::CognitoIdentity
1631
1631
  params: params,
1632
1632
  config: config)
1633
1633
  context[:gem_name] = 'aws-sdk-cognitoidentity'
1634
- context[:gem_version] = '1.40.0'
1634
+ context[:gem_version] = '1.40.1'
1635
1635
  Seahorse::Client::Request.new(handlers, context)
1636
1636
  end
1637
1637
 
@@ -85,6 +85,10 @@ module Aws
85
85
  @identity_id = options.delete(:identity_id)
86
86
  @custom_role_arn = options.delete(:custom_role_arn)
87
87
  @logins = options.delete(:logins) || {}
88
+ @async_refresh = false
89
+
90
+ client_opts = {}
91
+ options.each_pair { |k,v| client_opts[k] = v unless CLIENT_EXCLUDE_OPTIONS.include?(k) }
88
92
 
89
93
  if !@identity_pool_id && !@identity_id
90
94
  raise ArgumentError,
@@ -92,7 +96,7 @@ module Aws
92
96
  end
93
97
 
94
98
  @client = options[:client] || CognitoIdentity::Client.new(
95
- options.merge(credentials: false)
99
+ client_opts.merge(credentials: false)
96
100
  )
97
101
  super
98
102
  end
@@ -113,6 +117,8 @@ module Aws
113
117
  private
114
118
 
115
119
  def refresh
120
+ @before_refresh.call(self) if @before_refresh
121
+
116
122
  resp = @client.get_credentials_for_identity(
117
123
  identity_id: identity_id,
118
124
  custom_role_arn: @custom_role_arn
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cognitoidentity/customizations'
48
48
  # @!group service
49
49
  module Aws::CognitoIdentity
50
50
 
51
- GEM_VERSION = '1.40.0'
51
+ GEM_VERSION = '1.40.1'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cognitoidentity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.40.0
4
+ version: 1.40.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core