zuora_api_oauth_alpha 2.11 → 2.12

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: 06b4934fccb52f046881296ba3e21ff0ee9f08ce68bc169f5264e32b55107f4b
4
- data.tar.gz: b8c94bf111391ffedcbcb659c1901949b1b5c65f3e725085736e78727870147e
3
+ metadata.gz: 9f1b8e481f51714e27641e55da2b0ea1b548928d2d8aa68d681d5806b6f83871
4
+ data.tar.gz: b025288e5209e62085eb825176956500a57e558b42a49513eb22df64174fa702
5
5
  SHA512:
6
- metadata.gz: 21c546dac7baf73ed4b323a8331671aa0f7926eb39283b544c10133287826af1dfa4644cb64951eba1d829a929bb5c8d9c1c60a32587c2f259d915b1204e26b5
7
- data.tar.gz: 7d9c9487ff78dbfd7d83772d465cec4e77e07fde8b55dd9e96b3507f05e2d6ce16e53347c50d8ba77956e0a4dc50d4c3b6f7487bb032bc7506bfbe301a867d45
6
+ metadata.gz: 67c0f42b36fb2376b41142d143e6d12cbfa449f0c2ea202a851cd4779a235851de55b2470b8eeef525ac2e3c2999bda24120bfd78623a37c4e03cf7b08448fef
7
+ data.tar.gz: 562e41cb0edd6fa018f6d60a5b70d3bc2f8316ea66da768a25bcc7aa249001a975254c9e36251f6ada0ef5d91398cbac93e3282052440dc32398ef1e5d23afd2
@@ -148,7 +148,7 @@ module ZuoraAPI
148
148
  rescue ZuoraAPI::Exceptions::ZuoraAPISessionError => ex
149
149
  if !(tries -= 1).zero? && z_session
150
150
  Rails.logger.debug {"Session Invalid"}
151
- self.new_session
151
+ self.new_session(:basic)
152
152
  retry
153
153
  else
154
154
  if errors.include?(ex.class)
@@ -15,11 +15,13 @@ module ZuoraAPI
15
15
  end
16
16
 
17
17
  def authentication_prefix(auth_type = :basic)
18
+ auth_type ||= :basic
18
19
  raise ZuoraAPI::Exceptions::ZuoraAPIAuthenticationTypeError.new("Basic Login, does not support Authentication of Type: #{auth_type}") if auth_type != :basic
19
20
  return "ZSession "
20
21
  end
21
22
 
22
23
  def check_session(auth_type = :basic)
24
+ auth_type ||= :basic
23
25
  if auth_type != :basic
24
26
  self.current_error = "Basic Login, does not support Authentication of Type: #{auth_type}"
25
27
  self.status = 'AuthenticationError'
@@ -29,6 +31,8 @@ module ZuoraAPI
29
31
  end
30
32
 
31
33
  def new_session(auth_type = :basic)
34
+ auth_type ||= :basic
35
+ puts auth_type
32
36
  Rails.logger.debug("Create new session")
33
37
  raise ZuoraAPI::Exceptions::ZuoraAPIAuthenticationTypeError.new("Basic Login, does not support Authentication of Type: #{auth_type}") if auth_type != :basic
34
38
  begin
@@ -34,6 +34,7 @@ module ZuoraAPI
34
34
  end
35
35
 
36
36
  def authentication_prefix(auth_type)
37
+ auth_type ||= :basic
37
38
  if auth_type == :bearer
38
39
  return "Bearer "
39
40
  elsif auth_type == :basic
@@ -44,6 +45,7 @@ module ZuoraAPI
44
45
  end
45
46
 
46
47
  def check_session(auth_type = :basic)
48
+ auth_type ||= :basic
47
49
  if !@supported_authentication_types.include?(auth_type)
48
50
  self.current_error = "Oauth Login, does not support Authentication of Type: #{auth_type}"
49
51
  self.status = 'AuthenticationError'
@@ -54,6 +56,7 @@ module ZuoraAPI
54
56
  end
55
57
 
56
58
  def new_session(auth_type = :basic)
59
+ auth_type ||= :basic
57
60
  if auth_type == :basic
58
61
  return get_z_session()
59
62
  elsif auth_type == :bearer
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "2.11"
2
+ VERSION = "2.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api_oauth_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.11'
4
+ version: '2.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-01 00:00:00.000000000 Z
11
+ date: 2018-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler