nm-gigya 0.0.5 → 0.0.6
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 +9 -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: c2600b2a029001bec188706347f7c8040b08fc2a
|
4
|
+
data.tar.gz: ac59bf9c2b25c1864a24c6e247eb574552894a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a63c574d1ef8960248a6b6f70c61f9f823f511e48d74aaa72971eeae497332c92e6e3fd5cc9a9ca32076cb14b9a42ac05822969976066b44126ae2f39ffe36a
|
7
|
+
data.tar.gz: 97de7e9ba5310350fed94c43151e7e9e869627d71df1642c75280fd055f1758ba167f747a8b794e4e8a2ac2344b348ad5dc0329fb9cc604e2a46493da2c3790b
|
@@ -16,9 +16,16 @@ module Gigya
|
|
16
16
|
def interpret_jwt_token
|
17
17
|
@gigya_token ||= begin
|
18
18
|
tmp_token = nil
|
19
|
-
|
20
|
-
|
19
|
+
|
20
|
+
begin
|
21
|
+
authenticate_with_http_token do |token, options|
|
22
|
+
tmp_token = token
|
23
|
+
end
|
24
|
+
rescue
|
25
|
+
# If this is being called from a helper instead of a controller, then the authenticate_with_http_token is not available.
|
26
|
+
# Additionally, we probably can't even use the HTTP Authorization header anyway
|
21
27
|
end
|
28
|
+
|
22
29
|
tmp_token = params[GIGYA_QUERY_PARAM] unless params[GIGYA_QUERY_PARAM].blank?
|
23
30
|
if tmp_token.blank?
|
24
31
|
tmp_token = cookies[GIGYA_COOKIE_PARAM]
|