Permalink
Browse files

Using the existing sig verification code

  • Loading branch information...
1 parent 3e73265 commit f4ed8f929f46b71b785fd3322a3f3cacd5bc53d4 andy committed Aug 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/facebooker2/rails/controller.rb
@@ -225,7 +225,7 @@ def oauth2_fetch_client_and_user
def oauth2_fetch_client_and_user_from_cookie
return unless fb_cookie?
sig,payload = fb_cookie.split('.')
- return unless oauth2_fb_cookie_signature_correct?(sig, payload)
+ return unless fb_signed_request_sig_valid?(sig, payload)
data = JSON.parse(fb_signed_request_json(payload))
authenticator = Mogli::Authenticator.new(Facebooker2.app_id, Facebooker2.secret, nil)
client = Mogli::Client.create_from_code_and_authenticator(data["code"], authenticator)

0 comments on commit f4ed8f9

Please sign in to comment.