zuora_connect 2.0.3h → 2.0.3i
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: e725064fb61589a27d7ae6380a45d7f338aa47a7b9b5616ea945bff45984f766
|
4
|
+
data.tar.gz: 9680005274b6bf52e302dc96a99a04e51bc8b818ee8f8477e955d2ea6df543cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e389aac6250ea4d1c92d53b76c91e083a42135f8fc2833be12eca519a25c74e301f2aedced9bbcff98178f632c8879af4fd8552154870aa0e4b2074e8fcf9ec3
|
7
|
+
data.tar.gz: f60754ef29451e8b95233a177e1130ce584855c1d7a2caad5f3c1b5e262085d4dce4670d68ac9569d86998468ec1a05110a54599130efbf0a5d6a9e5ab6a6f94
|
@@ -52,26 +52,27 @@
|
|
52
52
|
</style>
|
53
53
|
</head>
|
54
54
|
|
55
|
-
<body
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<div>
|
60
|
-
<
|
55
|
+
<body >
|
56
|
+
<div style='background: white;'>
|
57
|
+
<!-- This file lives in public/500.html -->
|
58
|
+
<% if defined?(exception) %>
|
59
|
+
<div class="dialog" style='max-width: 74em;'>
|
60
|
+
<div>
|
61
|
+
<h1><%= exception.class %> - '<%= exception.message %>'</h1>
|
62
|
+
</div>
|
63
|
+
<p style='text-align: left;'>
|
64
|
+
<% exception.backtrace.each do |line| %>
|
65
|
+
<%= line %><br>
|
66
|
+
<% end %>
|
67
|
+
</p>
|
61
68
|
</div>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
<div class="dialog">
|
69
|
-
<div>
|
70
|
-
<h1>The launch url was invalid.</h1>
|
69
|
+
<% else %>
|
70
|
+
<div class="dialog">
|
71
|
+
<div>
|
72
|
+
<h1>The launch url was invalid.</h1>
|
73
|
+
</div>
|
74
|
+
<p>Please try relaunching this application</p>
|
71
75
|
</div>
|
72
|
-
|
73
|
-
|
74
|
-
<% end %>
|
75
|
-
|
76
|
-
|
76
|
+
<% end %>
|
77
|
+
</div>
|
77
78
|
</body></html>
|
@@ -175,50 +175,6 @@ module ZuoraConnect
|
|
175
175
|
#Create new app instance
|
176
176
|
raise "Do not support new instance creation right now."
|
177
177
|
end
|
178
|
-
elsif params[:app_instance_ids].present?
|
179
|
-
if !params[:app_instance_id].present?
|
180
|
-
begin
|
181
|
-
app_instance_ids = JSON.parse(Base64.urlsafe_decode64(params[:app_instance_ids]))
|
182
|
-
if app_instance_ids.length == 1
|
183
|
-
verify_with_navbar
|
184
|
-
instances = JSON.parse(Base64.urlsafe_decode64(CGI.parse(URI.parse(session[params[:app_instance_ids]]["url"]).query)["app_instance_ids"][0]))
|
185
|
-
if instances.include?(app_instance_ids[0])
|
186
|
-
@appinstance = ZuoraConnect::AppInstance.find(app_instance_ids[0])
|
187
|
-
@appinstance.new_session(session: {})
|
188
|
-
@appinstance.cache_app_instance
|
189
|
-
session["appInstance"] = app_instance_ids[0]
|
190
|
-
else
|
191
|
-
ZuoraConnect.logger.error("Launch Error: Param Instance didnt match session data")
|
192
|
-
render "zuora_connect/static/invalid_launch_request"
|
193
|
-
return
|
194
|
-
end
|
195
|
-
else
|
196
|
-
select_instance
|
197
|
-
return
|
198
|
-
end
|
199
|
-
rescue => ex
|
200
|
-
ZuoraConnect.logger.error(ex)
|
201
|
-
render "zuora_connect/static/invalid_launch_request"
|
202
|
-
return
|
203
|
-
end
|
204
|
-
elsif params[:app_instance_id].present?
|
205
|
-
begin
|
206
|
-
instances = JSON.parse(Base64.urlsafe_decode64(CGI.parse(URI.parse(session[params[:app_instance_ids]]["url"]).query)["app_instance_ids"][0]))
|
207
|
-
if instances.include?(params[:app_instance_id].to_i)
|
208
|
-
@appinstance = ZuoraConnect::AppInstance.find(params[:app_instance_id].to_i)
|
209
|
-
@appinstance.new_session(session: {})
|
210
|
-
@appinstance.cache_app_instance
|
211
|
-
session["appInstance"] = params[:app_instance_id].to_i
|
212
|
-
else
|
213
|
-
render "zuora_connect/static/invalid_launch_request"
|
214
|
-
return
|
215
|
-
end
|
216
|
-
rescue => ex
|
217
|
-
ZuoraConnect.logger.error(ex)
|
218
|
-
render "zuora_connect/static/invalid_launch_request"
|
219
|
-
return
|
220
|
-
end
|
221
|
-
end
|
222
178
|
end
|
223
179
|
|
224
180
|
start_time = Time.now
|
@@ -358,8 +314,9 @@ module ZuoraConnect
|
|
358
314
|
response.set_header('WWW-Authenticate', "Basic realm=\"Application\"")
|
359
315
|
#render json: {"status": 401, "message": "Access Denied"}, status: :unauthorized
|
360
316
|
render html: "HTTP Basic: Access denied.\n", status: :unauthorized
|
317
|
+
render plain: "Access Denied", status: :unauthorized
|
361
318
|
end
|
362
319
|
end
|
363
320
|
end
|
364
321
|
end
|
365
|
-
end
|
322
|
+
end
|
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.3i
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|
@@ -305,6 +305,7 @@ files:
|
|
305
305
|
- app/models/zuora_connect/app_instance_base.rb
|
306
306
|
- app/models/zuora_connect/login.rb
|
307
307
|
- app/models/zuora_connect/telegraf.rb
|
308
|
+
- app/models/zuora_connect/zuora_login.rb
|
308
309
|
- app/views/layouts/zuora_connect/application.html.erb
|
309
310
|
- app/views/sql/refresh_aggregate_table.txt
|
310
311
|
- app/views/zuora_connect/static/invalid_app_instance_error.html.erb
|