nm-gigya 0.0.17 → 0.0.18
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/gigya/connection.rb +2 -2
- 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: 5b5ee7e02cbee66e34623bd563b72e190a353813
|
|
4
|
+
data.tar.gz: e56db309a0c6e0b6228ace8b4e524cc142cae19f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f1eb0de5d1e3d08ff2876f660c7dd0747c94b8cd1dc74ea1d574ac4cb316f9590b62d52936473f9288cbe255f81cb739095cf7b218779705d6a93f54afb89c5
|
|
7
|
+
data.tar.gz: 14aaa95b1e75a442c1268cacdd2229fc25d02dd116ba2b605341dc41c82de7a6d346b59deb69ef832a8a302ba65b9c269893839413d80ce4a35cf231e1722dea
|
data/lib/gigya/connection.rb
CHANGED
|
@@ -219,13 +219,13 @@ module Gigya
|
|
|
219
219
|
@cached_data = {}
|
|
220
220
|
end
|
|
221
221
|
|
|
222
|
-
def build_test_jwt(uid = nil, data_options = {}, expiration = nil, gigya_munge =
|
|
222
|
+
def build_test_jwt(uid = nil, data_options = {}, expiration = nil, gigya_munge = false)
|
|
223
223
|
data_options = (data_options || {}).dup
|
|
224
224
|
data_options["sub"] = uid unless uid.nil?
|
|
225
225
|
data_options["sub"] ||=SecureRandom.uuid
|
|
226
226
|
data_options["apiKey"] ||= (@opts[:api_key] || "no_api_key")
|
|
227
227
|
data_options["iss"] ||= "https://fidm.gigya.com/jwt/#{data_options["apiKey"]}/"
|
|
228
|
-
data_options["iat"] ||=
|
|
228
|
+
data_options["iat"] ||= Time.now - 10.seconds.to_i
|
|
229
229
|
data_options["exp"] = (Time.now + expiration).to_i unless expiration.nil?
|
|
230
230
|
data_options["exp"] ||= (Time.now + (60 * 60)).to_i
|
|
231
231
|
data_options["firstName"] ||= "Jim#{rand(10000000)}"
|