zuora_connect 3.2.7 → 3.2.9

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
  SHA256:
3
- metadata.gz: cb20b70dfdf001e2f58ec39b585a597b170636f62b6cf2b42ba7793be4b1801c
4
- data.tar.gz: 75347ab051f27c0509c0c4478a4aabf7ab90f3c8c168fd3426fe364fb10322f4
3
+ metadata.gz: 0452ecb76f32eef54e589335f091fe184ada0ba9b8ad1871f1a1b1e9829b1f18
4
+ data.tar.gz: 31ff0fe165db7d17ed46c07ed19df02dbb29dd5289cfa06269819a9b5a7e6e69
5
5
  SHA512:
6
- metadata.gz: 744d36594c697e84a80b17f843084ac2f5f7848d71b145292eee1bda8ae11baf2e274d826bd1fec660a52506e80b7bcfb2291258919d087780ac05aaf06570e7
7
- data.tar.gz: a510e390477e3f40ac956ea9382b0782837b445825048fa243551d0f2e7a9e3e9f24c58a7724d9b2cb55fc2a23837b5f4fc8c7f7dd8f96cc1ad8e8cd8d04564d
6
+ metadata.gz: 8f59ea3a89c52828218fc69f578aba03f3f072c3c2ec1595643f8c77e49234b5d9fd93645d9a6a930b563e0e73c72fddbf87b2ce1ed831301d08d5137ab5653e
7
+ data.tar.gz: fa86e877ae6f0b8d6f4f422a307c2e772a7a6406f904fa9f1b34be8060ceffd5889ba1af501276be2630859890df526d48c3e12269e6a034f430eecb5682996c
@@ -3,8 +3,16 @@ module ZuoraConnect
3
3
  protect_from_forgery with: :exception
4
4
  before_action :authenticate_connect_app_request, except: [:ldap_login]
5
5
  after_action :persist_connect_app_session, except: [:ldap_login]
6
-
6
+ skip_before_action :verify_authenticity_token, :only => [:ldap_login]
7
+
7
8
  def ldap_login
9
+ if !ZuoraConnect::AppInstance::INTERNAL_HOSTS.include?(request.headers.fetch("HOST", nil))
10
+ render 'zuora_connect/application/ldap_login', locals: {
11
+ title: 'Internal Auth Failure',
12
+ message: 'Internal Auth Failure'
13
+ }, :layout => false
14
+ end
15
+
8
16
  require 'net-ldap'
9
17
 
10
18
  username = request.parameters['ldap_username']
@@ -233,6 +233,8 @@ module ZuoraConnect
233
233
  retry
234
234
  rescue ZuoraConnect::Exceptions::InvalidCredentialSet => ex
235
235
  raise
236
+ rescue ZuoraConnect::Exceptions::ConnectCommunicationError => ex
237
+ raise
236
238
  rescue => ex
237
239
  if recoverable_session
238
240
  ZuoraConnect.logger.warn("REBUILDING - Using backup expired cache", ex, self.default_ougai_items)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnect
4
- VERSION = "3.2.7"
4
+ VERSION = "3.2.9"
5
5
  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: 3.2.7
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-18 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment