nm-gigya 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gigya/connection.rb +1 -1
- data/lib/gigya/controller_utils.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: 158cb06fa4fad8493c7e615a86c819204a7aa86b
|
4
|
+
data.tar.gz: 193676bfef6af691295381e9393d09907f02d68b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8562a605078f8787de737ca358ff6a335ba4ff6a0bf09007f91be06f9a20aefb2848d659cfc07a22cf43346e00e9c370d7037f32f6cc1fef70ab06c6a91f218b
|
7
|
+
data.tar.gz: 82f6e2cd41de7d15d80ba594c180d118d7daf53a5b118dd7ba8aa64591b4774ef7b9ef0649c5d1a960aa35df825820059c28b7127ced0095358d60ea8faac5f0
|
data/lib/gigya/connection.rb
CHANGED
@@ -225,7 +225,7 @@ module Gigya
|
|
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"] ||= Time.now - 10.seconds.to_i
|
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)}"
|
@@ -140,7 +140,7 @@ module Gigya
|
|
140
140
|
def needs_token_refresh_for_time?
|
141
141
|
return false if @@gigya_jwt_refresh_time.nil?
|
142
142
|
|
143
|
-
issue_time = Time.at(@gigya_jwt_info["iat"])
|
143
|
+
issue_time = Time.at(@gigya_jwt_info["iat"].to_i)
|
144
144
|
|
145
145
|
return issue_time + @@gigya_jwt_refresh_time < Time.now
|
146
146
|
end
|