zuora_connect 3.2.7 → 3.2.8

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: df41d948a604580eff9e8797e3b1b9dfd180622bca5659dfb4bc6ac7cfca6ec7
4
+ data.tar.gz: f4c7d955bcb94d8724bd7f8bf7dbabe0b66c7b0f6e540ca55e93be616177b7e2
5
5
  SHA512:
6
- metadata.gz: 744d36594c697e84a80b17f843084ac2f5f7848d71b145292eee1bda8ae11baf2e274d826bd1fec660a52506e80b7bcfb2291258919d087780ac05aaf06570e7
7
- data.tar.gz: a510e390477e3f40ac956ea9382b0782837b445825048fa243551d0f2e7a9e3e9f24c58a7724d9b2cb55fc2a23837b5f4fc8c7f7dd8f96cc1ad8e8cd8d04564d
6
+ metadata.gz: e118433fe201632c215dc15cbbc47d8e49aefc353b54e92e428816c6ec582f3b245c0806a0bc6e4fea8c070c3d12269fac6a940a0daaab332795f73c15470e33
7
+ data.tar.gz: 2592ebfe6873d9f83ac26504b2adb7ce3422ece467e4d07fb4ed9ddcfad28b606c72744042f22e2dd01069f9e5008a19074bf9c63ee16452b14cad39a05980ab
@@ -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']
@@ -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.8"
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.8
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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment