zuora_connect 1.4.27 → 1.4.28
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 +2 -0
- data/lib/zuora_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb0b55360a75c7c19a17aa978b02c075d056ae66
|
4
|
+
data.tar.gz: 0cf9190ff0f1d327c39067c29f91665f7a89a13e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de9b5f1c96c77398c2fc3fbad7f52806179a80b836e5b8c7e26f43bfd1fc0e8522b712115b28dedf664e28b25e5aae7711beaddf7da59c986a3cf8a46e679701
|
7
|
+
data.tar.gz: 27c3451b81ef4f163aab441c2c5157b44bbb9a8d85372700252c984af77e69b408e8cc871f1e03b70284692eb6bbf2683daf8ce38021254a37f4b6e7260b1c2b
|
@@ -6,6 +6,7 @@ module ZuoraConnect
|
|
6
6
|
|
7
7
|
def authenticate_app_api_request
|
8
8
|
start_time = Time.now
|
9
|
+
PaperTrail.whodunnit = "API User" if defined?(PaperTrail)
|
9
10
|
if !request.headers["API-Token"].blank?
|
10
11
|
@appinstance = ZuoraConnect::AppInstance.where(:api_token => request.headers["API-Token"]).first
|
11
12
|
Rails.logger.debug("[#{@appinstance.id}] API REQUEST - API token") if !@appinstance.blank?
|
@@ -35,6 +36,7 @@ module ZuoraConnect
|
|
35
36
|
#Call .data_lookup with the current session to retrieve session. In some cases session may be stored/cache in redis
|
36
37
|
#so data lookup provides a model method that can be overriden per app.
|
37
38
|
@appinstance.new_session(:session => @appinstance.data_lookup(:session => session))
|
39
|
+
PaperTrail.whodunnit = session["#{@appinstance.id}::user::email"].present? ? session["#{@appinstance.id}::user::email"] : "N/A" if defined?(PaperTrail)
|
38
40
|
I18n.locale = session["#{@appinstance.id}::user::locale"] ? session["#{@appinstance.id}::user::locale"] : @appinstance.locale
|
39
41
|
Time.zone = session["#{@appinstance.id}::user::timezone"] ? session["#{@appinstance.id}::user::timezone"] : @appinstance.timezone
|
40
42
|
Rails.logger.debug("[#{@appinstance.blank? ? "N/A" : @appinstance.id}] Authenticate App Request Completed In - #{(Time.now - start_time).round(2)}s")
|