nm-gigya 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gigya/controller_utils.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a25e8dd7145c0f168abd4cb48d5a0015e36acf5b5875ab14847cd409da1517
|
4
|
+
data.tar.gz: 89575031565c30fece68f11d68cfb2c172c955861468890a1b4dd347cb5df555
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3afe07e75ba869edfd28d40560c1355e6fdfac5e724be115dd9a31a3c36c7626ad1c8be98251a95714f0b37bfd9f3d5f0a6cb0605525dbcdf53298ff2737236
|
7
|
+
data.tar.gz: 3b41ed2716229a0a4c9c7b5b13a0f874977b42a5e4673d9df01e15184ceb707368e833bd0c2b9adef5080063a9823f8daa474b2d9512be85f49e560c89ab5377
|
@@ -62,7 +62,7 @@ module Gigya
|
|
62
62
|
|
63
63
|
begin
|
64
64
|
if tmp_token.blank?
|
65
|
-
tmp_token = session[GIGYA_SESSION_PARAM]
|
65
|
+
tmp_token = session[GIGYA_SESSION_PARAM]
|
66
66
|
token_location = :session
|
67
67
|
end
|
68
68
|
rescue
|
@@ -78,7 +78,7 @@ module Gigya
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def interpret_jwt_token(force = false)
|
81
|
-
if @gigya_jwt_info.nil?
|
81
|
+
if @gigya_jwt_info.nil?
|
82
82
|
@gigya_jwt_info = Gigya::Connection.shared_connection.validate_jwt(gigya_jwt_token)
|
83
83
|
|
84
84
|
perform_token_refresh if needs_token_refresh?
|
@@ -114,7 +114,7 @@ module Gigya
|
|
114
114
|
case @gigya_token_location
|
115
115
|
when :header
|
116
116
|
headers["X-Set-Authorization-Token"] = token
|
117
|
-
headers["X-Set-Authorization-Token-Expiration"] = expiration_time.to_i
|
117
|
+
headers["X-Set-Authorization-Token-Expiration"] = expiration_time.to_i.to_s
|
118
118
|
when :cookie
|
119
119
|
cookies[GIGYA_COOKIE_PARAM] = token
|
120
120
|
when :session
|
@@ -160,5 +160,5 @@ module Gigya
|
|
160
160
|
@gigya_jwt_info["sub"]
|
161
161
|
end
|
162
162
|
end
|
163
|
-
end
|
163
|
+
end
|
164
164
|
end
|