Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix for verifying rest_graph_fbs_ within a facebook app flow #5

Closed
wants to merge 2 commits into from

2 participants

@bruchu

The sig verification in the rest_graph_fbs_ is failing within the facebook app flow. I ran into this specifically with the session_store.

My workaround involves verifying the sig without '"' and with.

@godfat
Owner
@bruchu
@godfat
Owner
@bruchu
@godfat
Owner
@godfat godfat closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 27, 2011
  1. formatting fix

    Bruce Chu authored
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 3 deletions.
  1. +3 −0  Gemfile
  2. +2 −1  lib/rest-graph/core.rb
  3. +3 −2 rest-graph.gemspec
View
3  Gemfile
@@ -22,4 +22,7 @@ group :test do
gem 'rr'
gem 'webmock'
gem 'bacon'
+ if RUBY_VERSION >= '1.9.2'
+ gem 'psych'
+ end
end
View
3  lib/rest-graph/core.rb
@@ -350,7 +350,8 @@ def parse_cookies! cookies
def parse_fbs! fbs
self.data = check_sig_and_return_data(
# take out facebook sometimes there but sometimes not quotes in cookies
- Rack::Utils.parse_query(fbs.to_s.gsub('"', '')))
+ Rack::Utils.parse_query(fbs.to_s.gsub('"', ''))) ||
+ check_sig_and_return_data(Rack::Utils.parse_query(fbs.to_s))
end
def parse_json! json
View
5 rest-graph.gemspec
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.authors = [
%q{Cardinal Blue},
%q{Lin Jen-Shin (godfat)}]
- s.date = %q{2011-05-26}
+ s.date = %q{2011-05-27}
s.description = %q{A lightweight Facebook Graph API client}
s.email = [%q{dev (XD) cardinalblue.com}]
s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
s.files = [
%q{.gitignore},
%q{.gitmodules},
+ %q{.rvmrc},
%q{CHANGES},
%q{CONTRIBUTORS},
%q{Gemfile},
@@ -108,7 +109,7 @@ Gem::Specification.new do |s|
%q{--main},
%q{README}]
s.require_paths = [%q{lib}]
- s.rubygems_version = %q{1.8.4}
+ s.rubygems_version = %q{1.8.3}
s.summary = %q{A lightweight Facebook Graph API client}
s.test_files = [
%q{test/test_api.rb},
Something went wrong with that request. Please try again.