zuora_connect 2.0.57p → 2.0.57u
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6aca3131ad1e7e0d1893cdee0bf1f5e586866d5f2a723bed5a786cf54cf9526
|
4
|
+
data.tar.gz: 4d23ae9f2c26901f752480978013f296405c901f4983fca43b8ac474c63337f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e18417d268a88be0d6c6afee5cf5d3a749ac9c14a59e9c1c9fd5f515b4edb9887ec2b353cecdf1c0237c5c359c6702c040c9955a6fb9d8c7bf928f420ea6e6
|
7
|
+
data.tar.gz: ebee73aa95264ef9b980ddaeae11203b43891721ec2bac3e125794a24dd063ac0f8df5e3ef0fe1a6ffb13c34788b963653779f06bcd0a7db0f71da9bd229474a
|
@@ -203,7 +203,7 @@ module ZuoraConnect
|
|
203
203
|
else
|
204
204
|
self.new_session_message = "REBUILDING - Expires in #{time_expire} seconds"
|
205
205
|
end
|
206
|
-
ZuoraConnect.logger.debug(self.new_session_message)
|
206
|
+
ZuoraConnect.logger.debug(self.new_session_message, self.default_ougai_items)
|
207
207
|
self.build_task(task_data: session["#{self.id}::task_data"], session: session)
|
208
208
|
end
|
209
209
|
end
|
@@ -219,7 +219,7 @@ module ZuoraConnect
|
|
219
219
|
rescue ZuoraConnect::Exceptions::MissMatch => ex
|
220
220
|
self.delete_app_instance
|
221
221
|
session = {}
|
222
|
-
ZuoraConnect.logger.error(ex, app_instance_id_new: self.task_data['id']
|
222
|
+
ZuoraConnect.logger.error(ex, self.default_ougai_items.merge({app_instance_id_new: self.task_data['id']}))
|
223
223
|
retry
|
224
224
|
rescue ZuoraConnect::Exceptions::InvalidCredentialSet => ex
|
225
225
|
raise
|
@@ -1217,6 +1217,16 @@ module ZuoraConnect
|
|
1217
1217
|
end
|
1218
1218
|
end
|
1219
1219
|
|
1220
|
+
def self.without_sticking
|
1221
|
+
if self.connection.respond_to?(:without_sticking)
|
1222
|
+
self.connection.without_sticking do
|
1223
|
+
yield
|
1224
|
+
end
|
1225
|
+
else
|
1226
|
+
yield
|
1227
|
+
end
|
1228
|
+
end
|
1229
|
+
|
1220
1230
|
method_hook :updateOption, :update_logins, :before => :check_oauth_state
|
1221
1231
|
method_hook :new_session, :refresh, :build_task, :after => :apartment_switch
|
1222
1232
|
end
|
@@ -19,7 +19,6 @@ module ZuoraConnect
|
|
19
19
|
ElasticAPM.set_label(:trace_id, request.uuid) if defined?(ElasticAPM) && ElasticAPM.running?
|
20
20
|
end
|
21
21
|
end
|
22
|
-
start_time = Time.now
|
23
22
|
if request.headers["API-Token"].present?
|
24
23
|
@appinstance = ZuoraConnect::AppInstance.find_by(:api_token => request.headers["API-Token"])
|
25
24
|
ZuoraConnect.logger.debug("API REQUEST - API token") if @appinstance.present?
|
@@ -48,7 +47,7 @@ module ZuoraConnect
|
|
48
47
|
render json: {"status": 401, "message": "Missing mapping or no deployment for '#{zuora_host}-#{zuora_entity_id}' ."}, status: :unauthorized
|
49
48
|
return
|
50
49
|
elsif appinstances.size > 1
|
51
|
-
render json: {"status": 401, "message": "More than one app instance binded to host and entity ids. Please indicate correct instance via 'zuora-instance-id' header", "instances": appinstances.map {|instance| instance.id } }, status: :unauthorized
|
50
|
+
render json: {"status": 401, "message": "More than one app instance binded to host and entity ids. Please indicate correct instance via 'zuora-instance-id' header", "instances": appinstances.map {|instance| instance.id }.sort }, status: :unauthorized
|
52
51
|
return
|
53
52
|
else
|
54
53
|
@appinstance = appinstances.first
|
@@ -65,10 +64,6 @@ module ZuoraConnect
|
|
65
64
|
else
|
66
65
|
check_instance
|
67
66
|
end
|
68
|
-
|
69
|
-
if @appinstance.present?
|
70
|
-
ZuoraConnect.logger.debug("Authenticate App API Request Completed In - #{(Time.now - start_time).round(2)}s")
|
71
|
-
end
|
72
67
|
end
|
73
68
|
end
|
74
69
|
|
@@ -101,7 +96,6 @@ module ZuoraConnect
|
|
101
96
|
ElasticAPM.set_label(:trace_id, request.uuid)
|
102
97
|
end
|
103
98
|
end
|
104
|
-
start_time = Time.now
|
105
99
|
|
106
100
|
if ZuoraConnect.configuration.mode == "Production"
|
107
101
|
setup_instance_via_prod_mode
|
@@ -141,8 +135,6 @@ module ZuoraConnect
|
|
141
135
|
rescue
|
142
136
|
ZuoraConnect.logger.error(ex)
|
143
137
|
end
|
144
|
-
|
145
|
-
ZuoraConnect.logger.debug("Authenticate App Request Completed In - #{(Time.now - start_time).round(2)}s")
|
146
138
|
end
|
147
139
|
rescue ZuoraConnect::Exceptions::InvalidCredentialSet => ex
|
148
140
|
id = @appinstance.id
|
@@ -330,8 +322,8 @@ module ZuoraConnect
|
|
330
322
|
end
|
331
323
|
end
|
332
324
|
end
|
333
|
-
appinstances ||= ZuoraConnect::AppInstance.where("zuora_entity_ids ?& array[:entities] = true AND zuora_domain = :host", entities: [zuora_entity_id], host: zuora_client.rest_domain).pluck(:id, :name)
|
334
325
|
end
|
326
|
+
appinstances ||= ZuoraConnect::AppInstance.where("zuora_entity_ids ?& array[:entities] = true AND zuora_domain = :host", entities: [zuora_entity_id], host: zuora_client.rest_domain).pluck(:id, :name)
|
335
327
|
end
|
336
328
|
|
337
329
|
zuora_user_id = cookies['Zuora-User-Id'] || session["ZuoraCurrentIdentity"]['userId']
|
@@ -503,7 +495,7 @@ module ZuoraConnect
|
|
503
495
|
end
|
504
496
|
return
|
505
497
|
end
|
506
|
-
elsif request["data"] && /^([A-Za-z0-9+\/\-\_]{4})*([A-Za-z0-9+\/]{4}|[A-Za-z0-9
|
498
|
+
elsif request["data"].present? && (request["connectInstanceId"].present? || /^([A-Za-z0-9+\/\-\_]{4})*([A-Za-z0-9+\/]{4}|[A-Za-z0-9+-_\/]{3}=|[A-Za-z0-9+\/]{2}==)$/.match(request["data"].to_s))
|
507
499
|
session.clear
|
508
500
|
values = JSON.parse(ZuoraConnect::AppInstance.decrypt_response(Base64.urlsafe_decode64(request["data"])))
|
509
501
|
values.fetch("param_data", {}).each do |k ,v|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.57u
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|