warden 0.10.6 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/warden/proxy.rb +1 -1
- data/lib/warden/version.rb +1 -1
- data/spec/warden/hooks_spec.rb +12 -0
- data/warden.gemspec +1 -1
- metadata +3 -3
data/lib/warden/proxy.rb
CHANGED
data/lib/warden/version.rb
CHANGED
data/spec/warden/hooks_spec.rb
CHANGED
@@ -117,6 +117,18 @@ describe "standard authentication hooks" do
|
|
117
117
|
setup_rack(app).call(env)
|
118
118
|
env['warden.spec.order'].should == [1,2,3]
|
119
119
|
end
|
120
|
+
|
121
|
+
it "should allow me to log out a user in an after_set_user block" do
|
122
|
+
RAM.after_set_user{|u,a,o| a.logout}
|
123
|
+
|
124
|
+
app = lambda do |e|
|
125
|
+
e['warden'].authenticate(:pass)
|
126
|
+
valid_response
|
127
|
+
end
|
128
|
+
env = env_with_params
|
129
|
+
setup_rack(app).call(env)
|
130
|
+
env['warden'].authenticated?.should be_false
|
131
|
+
end
|
120
132
|
end
|
121
133
|
|
122
134
|
context "after_fetch" do
|
data/warden.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warden
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 10
|
9
|
-
-
|
10
|
-
version: 0.10.
|
9
|
+
- 7
|
10
|
+
version: 0.10.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Neighman
|