fbauth 0.9.9.2 → 0.9.9.3

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.
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 auth, try the cookie from the JS SDK
32
- data = parse_cookie
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 cookie auth, last chance try the URL
37
- data = parse_parms
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
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 9
9
- - 2
10
- version: 0.9.9.2
9
+ - 3
10
+ version: 0.9.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Three Wise Men Inc.