zuora_connect 2.0.3l → 2.0.3m
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 +4 -4
- data/lib/zuora_connect/controllers/helpers.rb +3 -5
- data/lib/zuora_connect/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5498136bf87d9ef78d44123bd1b723b3f924c277b680fafec4ff31c1247b9fed
|
4
|
+
data.tar.gz: e9895c310557b47f5f350f14e740171d616bd10f1223d942e8c1b0cfaa785133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f064300d023adc864bdcf239b979c278067846fc36bfb189f070a937ddf0fb2919b3be6dff673d7d5c92f8a4c012da29320b7e98ad77e786af9caec657d14f8
|
7
|
+
data.tar.gz: 8d9d988971198ff34978d5f425e4d581e4ba6b16f7400a1fcb7ad4a2304697da9b1da16f9be437f843d5e1407f29efad06b22eff912b8d9b03820ea81c55fbfe
|
@@ -163,8 +163,6 @@ module ZuoraConnect
|
|
163
163
|
end
|
164
164
|
|
165
165
|
body = {
|
166
|
-
'clientId' => SecureRandom.uuid,
|
167
|
-
'clientSecret' => SecureRandom.hex(10),
|
168
166
|
'userId' => zuora_user_id,
|
169
167
|
'entityIds' => [zuora_entity_id.unpack("a8a4a4a4a12").join('-')],
|
170
168
|
'customAuthorities' => [],
|
@@ -178,7 +176,7 @@ module ZuoraConnect
|
|
178
176
|
|
179
177
|
new_zuora_client = ZuoraAPI::Oauth.new(url: "https://#{zuora_host}", oauth_client_id: oauth_response["clientId"], oauth_secret: oauth_response["clientSecret"] )
|
180
178
|
|
181
|
-
client_describe, response = new_zuora_client.rest_call(
|
179
|
+
client_describe, response = new_zuora_client.rest_call(url: zuora_client.rest_endpoint("genesis/user/info").gsub('v1/', ''), session_type: :bearer)
|
182
180
|
|
183
181
|
Apartment::Tenant.switch!("public")
|
184
182
|
next_id = (ZuoraConnect::AppInstance.all.where(:access_token => nil).order(id: :desc).limit(1).pluck(:id).first || 24999999) + 1
|
@@ -198,8 +196,8 @@ module ZuoraConnect
|
|
198
196
|
"username": session["ZuoraCurrentIdentity"]["username"],
|
199
197
|
"url": new_zuora_client.url,
|
200
198
|
"status": "Active",
|
201
|
-
"oauth_client_id":
|
202
|
-
"oauth_secret":
|
199
|
+
"oauth_client_id": oauth_response['clientId'],
|
200
|
+
"oauth_secret": oauth_response['clientSecret'],
|
203
201
|
"authentication_type": "OAUTH",
|
204
202
|
"entities": client_describe["accessibleEntities"].map {|e| e.merge({'displayName' => client_describe["tenantName"]})} #needs work
|
205
203
|
},
|
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.3m
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|
@@ -44,20 +44,20 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.6.
|
47
|
+
version: 1.6.43
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 1.6.
|
50
|
+
version: 1.6.43
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 1.6.
|
57
|
+
version: 1.6.43
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.6.
|
60
|
+
version: 1.6.43
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: httparty
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|