doorkeeper 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of doorkeeper might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3980ae7bb2071ab9aa5f29952fc42fd5b04c0d7e
|
4
|
+
data.tar.gz: 71725d944d80d72391f12ab12056f28ae3a6e963
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48254ea12523bc9c00a1e07b512987357887453d490f9dac13b1266044c674fb713089abacb3e8213b5d1e8f1038d82d4ad8a9024f6cc9be93b11a679203d935
|
7
|
+
data.tar.gz: fa222e77888ed9373bb60e50981ba91bfeb301f548b4c8a0286593a94a6cb358a23acde563b91fde38b07e23c37b523f86c93b1b6f1bc6c18218b83d13dfa8c9
|
data/lib/doorkeeper/version.rb
CHANGED
@@ -51,4 +51,27 @@ feature 'Authorization endpoint' do
|
|
51
51
|
i_should_see_translated_error_message :unsupported_response_type
|
52
52
|
end
|
53
53
|
end
|
54
|
+
|
55
|
+
context 'forgery protection enabled' do
|
56
|
+
before do
|
57
|
+
ActionController::Base.allow_forgery_protection = true
|
58
|
+
end
|
59
|
+
|
60
|
+
after do
|
61
|
+
ActionController::Base.allow_forgery_protection = false
|
62
|
+
end
|
63
|
+
|
64
|
+
background do
|
65
|
+
create_resource_owner
|
66
|
+
sign_in
|
67
|
+
end
|
68
|
+
|
69
|
+
scenario 'raises exception on forged requests' do
|
70
|
+
ActionController::Base.any_instance.should_receive(:handle_unverified_request)
|
71
|
+
post "/oauth/authorize",
|
72
|
+
client_id: @client.uid,
|
73
|
+
redirect_uri: @client.redirect_uri,
|
74
|
+
response_type: 'code'
|
75
|
+
end
|
76
|
+
end
|
54
77
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felipe Elias Philipp
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|