fbauth 0.9.9.2 → 0.9.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mdown +1 -0
- data/app/controllers/facebook_auth_functions.rb +4 -4
- metadata +2 -2
data/README.mdown
CHANGED
@@ -24,6 +24,7 @@ iFrame Apps
|
|
24
24
|
|
25
25
|
- first page load as an iFrame app inside Facebook, where authentication params are sent in the URL used for your iFrame
|
26
26
|
- this is particularly required for mobile Safari and other browsers blocking cross-domain cookies by default
|
27
|
+
- handles the old session parameter, as well as the new signed_request parameter
|
27
28
|
|
28
29
|
- loading from the cookie initialized by the JavaScript API
|
29
30
|
- works great for browsers supporting cross-domain cookies by default
|
@@ -28,13 +28,13 @@ private
|
|
28
28
|
# Clear session variable if its data was bad
|
29
29
|
session[:fbauth] = nil
|
30
30
|
|
31
|
-
# If no valid session
|
32
|
-
data =
|
31
|
+
# If no valid session, try the URL params (session, signed_reuest)
|
32
|
+
data = parse_parms
|
33
33
|
auth = validate_and_save(data) unless data.nil?
|
34
34
|
return auth unless auth.nil?
|
35
35
|
|
36
|
-
# If no valid session or
|
37
|
-
data =
|
36
|
+
# If no valid session auth or params auth, last chance try the JS SDK
|
37
|
+
data = parse_cookie
|
38
38
|
auth = validate_and_save(data) unless data.nil?
|
39
39
|
return auth
|
40
40
|
end
|