zuora_connect 0.0.9.2.2 → 0.0.9.2.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0f113eb32e4e7d412c248b552836742fcb8e0ad
|
4
|
+
data.tar.gz: 1e6959692bac03e8f6e16bd5675dee897f495766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7fb109148d8dcf656ec772f9fa32acbef20ee92569a4c8c6aa02ff8f4de69541d84d628c5f2c8987e5e3e6bb271ecf46f33c741861c5e5b89953c83e78b084
|
7
|
+
data.tar.gz: a022c33273fcfa9fc9923c4452bea48d7a712a83470273c7a5ca4c15af3011ccfec3d90c93b696b12a7bbfa2cbbd8e9256437075db9addcac8d51922cce6f95c
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class AddTokensToAppInstance < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_column :zuora_connect_app_instances, :access_token, :string
|
4
|
-
add_column :zuora_connect_app_instances, :refresh_token, :string
|
3
|
+
add_column :zuora_connect_app_instances, :access_token, :string unless column_exists? :zuora_connect_app_instances, :access_token
|
4
|
+
add_column :zuora_connect_app_instances, :refresh_token, :string unless column_exists? :zuora_connect_app_instances, :refresh_token
|
5
5
|
end
|
6
6
|
end
|
@@ -10,7 +10,7 @@ module ZuoraConnect
|
|
10
10
|
|
11
11
|
def authenticate_app_api_request
|
12
12
|
authenticate_or_request_with_http_basic do |username, password|
|
13
|
-
@appinstance = ZuoraConnect::AppInstance.where(:
|
13
|
+
@appinstance = ZuoraConnect::AppInstance.where(:token => password).first
|
14
14
|
if !@appinstance.blank?
|
15
15
|
@appinstance.new_session(:session => {})
|
16
16
|
else
|