facebook_client 0.0.5.2 → 0.0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/session/signed_request_param.rb +1 -1
- metadata +3 -3
@@ -72,7 +72,7 @@ module FacebookClient
|
|
72
72
|
def self.verify_signed_request(secret, signed_request)
|
73
73
|
signature, encoded_url = signed_request.split(".")
|
74
74
|
signature = base64_url_decode(signature)
|
75
|
-
expected_sig = OpenSSL::HMAC.digest('SHA256', secret, encoded_url.tr("-_", "+/"))
|
75
|
+
expected_sig = OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new('SHA256'), secret, encoded_url.tr("-_", "+/"))
|
76
76
|
return signature == expected_sig
|
77
77
|
end
|
78
78
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facebook_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 93
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
9
|
- 5
|
10
|
-
-
|
11
|
-
version: 0.0.5.
|
10
|
+
- 3
|
11
|
+
version: 0.0.5.3
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- David Crockett
|