13 | 13 |
test/strategy_test.rb | 7 ++++---
|
14 | 14 |
5 files changed, 8 insertions(+), 7 deletions(-)
|
15 | 15 |
|
16 | |
--- a/lib/omniauth/facebook/signed_request.rb
|
17 | |
+++ b/lib/omniauth/facebook/signed_request.rb
|
18 | |
@@ -28,7 +28,7 @@
|
|
16 |
Index: ruby-omniauth-facebook.git/lib/omniauth/facebook/signed_request.rb
|
|
17 |
===================================================================
|
|
18 |
--- ruby-omniauth-facebook.git.orig/lib/omniauth/facebook/signed_request.rb
|
|
19 |
+++ ruby-omniauth-facebook.git/lib/omniauth/facebook/signed_request.rb
|
|
20 |
@@ -28,7 +28,7 @@ module OmniAuth
|
19 | 21 |
return if signature.nil?
|
20 | 22 |
|
21 | 23 |
decoded_hex_signature = base64_decode_url(signature)
|
|
24 | 26 |
|
25 | 27 |
unless decoded_payload['algorithm'] == SUPPORTED_ALGORITHM
|
26 | 28 |
raise UnknownSignatureAlgorithmError, "unknown algorithm: #{decoded_payload['algorithm']}"
|
27 | |
--- a/lib/omniauth/strategies/facebook.rb
|
28 | |
+++ b/lib/omniauth/strategies/facebook.rb
|
29 | |
@@ -80,7 +80,7 @@
|
|
29 |
Index: ruby-omniauth-facebook.git/lib/omniauth/strategies/facebook.rb
|
|
30 |
===================================================================
|
|
31 |
--- ruby-omniauth-facebook.git.orig/lib/omniauth/strategies/facebook.rb
|
|
32 |
+++ ruby-omniauth-facebook.git/lib/omniauth/strategies/facebook.rb
|
|
33 |
@@ -85,7 +85,7 @@ module OmniAuth
|
30 | 34 |
''
|
31 | 35 |
else
|
32 | 36 |
# Fixes regression in omniauth-oauth2 v1.4.0 by https://github.com/intridea/omniauth-oauth2/commit/85fdbe117c2a4400d001a6368cc359d88f40abc7
|
|
35 | 39 |
end
|
36 | 40 |
end
|
37 | 41 |
|
38 | |
--- a/test/helper.rb
|
39 | |
+++ b/test/helper.rb
|
|
42 |
Index: ruby-omniauth-facebook.git/test/helper.rb
|
|
43 |
===================================================================
|
|
44 |
--- ruby-omniauth-facebook.git.orig/test/helper.rb
|
|
45 |
+++ ruby-omniauth-facebook.git/test/helper.rb
|
40 | 46 |
@@ -1,5 +1,5 @@
|
41 | 47 |
require 'minitest/autorun'
|
42 | 48 |
-require 'mocha/setup'
|
|
44 | 50 |
require 'omniauth/strategies/facebook'
|
45 | 51 |
|
46 | 52 |
OmniAuth.config.test_mode = true
|
47 | |
--- a/test/signed_request_test.rb
|
48 | |
+++ b/test/signed_request_test.rb
|
49 | |
@@ -5,7 +5,7 @@
|
|
53 |
Index: ruby-omniauth-facebook.git/test/signed_request_test.rb
|
|
54 |
===================================================================
|
|
55 |
--- ruby-omniauth-facebook.git.orig/test/signed_request_test.rb
|
|
56 |
+++ ruby-omniauth-facebook.git/test/signed_request_test.rb
|
|
57 |
@@ -5,7 +5,7 @@ class SignedRequestTest < Minitest::Test
|
50 | 58 |
def setup
|
51 | 59 |
@value = fixture('signed_request.txt').strip
|
52 | 60 |
@secret = "897z956a2z7zzzzz5783z458zz3z7556"
|
|
55 | 63 |
end
|
56 | 64 |
|
57 | 65 |
def test_signed_request_payload
|
58 | |
--- a/test/strategy_test.rb
|
59 | |
+++ b/test/strategy_test.rb
|
60 | |
@@ -26,10 +26,11 @@
|
|
66 |
Index: ruby-omniauth-facebook.git/test/strategy_test.rb
|
|
67 |
===================================================================
|
|
68 |
--- ruby-omniauth-facebook.git.orig/test/strategy_test.rb
|
|
69 |
+++ ruby-omniauth-facebook.git/test/strategy_test.rb
|
|
70 |
@@ -26,10 +26,11 @@ end
|
61 | 71 |
class CallbackUrlTest < StrategyTestCase
|
62 | 72 |
test "returns the default callback url (omitting querystring)" do
|
63 | 73 |
url_base = 'http://auth.request.com'
|
|
71 | 81 |
end
|
72 | 82 |
|
73 | 83 |
test "returns path from callback_path option (omitting querystring)" do
|
74 | |
@@ -393,7 +394,7 @@
|
|
84 |
@@ -427,7 +428,7 @@ end
|
75 | 85 |
|
76 | 86 |
module SignedRequestHelpers
|
77 | 87 |
def signed_request(payload, secret)
|