zuora_connect 1.5.15 → 1.5.16
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 +6 -2
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 704b128e3310e7fd0b869f720750e0944c3b81bc
|
4
|
+
data.tar.gz: c5cc5e0b1a8112e860d34805e92958938b222091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8932847834d80d7e078a3de63c84a074cc77e821206b72985b640f2a14cd6ebbf6cf204c0ac50303c3a10493accc29574cf11fe4101d10026f6d687352199cf
|
7
|
+
data.tar.gz: e2bbdaef6358e68e5a79cf09758944e1ba4e4d1cb15b57a771daeb45c7041175095c0ce7e6dabae24d1f85f9f5fbbc36546ed0d4431f8898131320a4433149f7
|
@@ -96,7 +96,11 @@ module ZuoraConnect
|
|
96
96
|
@appinstance.refresh_token = values["refresh_token"] if !values["refresh_token"].blank? && @appinstance.refresh_token != values["refresh_token"]
|
97
97
|
@appinstance.oauth_expires_at = values["expires"] if !values["expires"].blank?
|
98
98
|
@appinstance.api_token = values["api_token"] if !values["api_token"].blank? && @appinstance.api_token != values["api_token"]
|
99
|
-
@appinstance.
|
99
|
+
if @appinstance.access_token_changed? && @appinstance.refresh_token_changed?
|
100
|
+
@appinstance.save(:validate => false)
|
101
|
+
else
|
102
|
+
raise ZuoraConnect::Exceptions::AccessDenied.new("Authorization mistmatch. Possible tampering")
|
103
|
+
end
|
100
104
|
end
|
101
105
|
|
102
106
|
def setup_instance_via_session
|
@@ -120,7 +124,7 @@ module ZuoraConnect
|
|
120
124
|
@appinstance.save(:validate => false)
|
121
125
|
end
|
122
126
|
if @appinstance.access_token.blank? || @appinstance.refresh_token.blank?
|
123
|
-
@appinstance.update_attributes(:access_token => values["user"], :refresh_token => values["key"])
|
127
|
+
@appinstance.update_attributes(:access_token => values["user"], :refresh_token => values["key"], :token => "#{values["key"]}#{values["key"]}")
|
124
128
|
end
|
125
129
|
session["#{@appinstance.id}::admin"] = ZuoraConnect.configuration.dev_mode_admin
|
126
130
|
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: 1.5.
|
4
|
+
version: 1.5.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|