warden-basic_auth 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/warden/basic_auth/version.rb +1 -1
- data/lib/warden/strategies/basic_auth.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2158b0fae5b07503ffa7525e762909a225e337a
|
4
|
+
data.tar.gz: 6d100b6dc26bb5eee3056e4d5a302ba1fa9919d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf583e87e48fd5848d12d27643b91a6bbda7ec9baa59a58f5bfb351ab9037b2b6ed114b2630aa510ca8153e90b8629865c6c399dcb29134b934866c3c9ba653
|
7
|
+
data.tar.gz: 523f72e384855185a979ecab31edd0d54abc62b42bf603f52b24528cbf1d651299c0f9a4936107f33effa6e2e6b0696c4dc28cf03c534bafba8f5cbb07c85241
|
@@ -27,7 +27,7 @@ module Warden
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def authentication_failed
|
30
|
-
headers 'WWW-Authenticate' => %(
|
30
|
+
headers 'WWW-Authenticate' => %(#{auth_scheme} realm="#{realm}")
|
31
31
|
|
32
32
|
fail! 'unauthorized'
|
33
33
|
end
|
@@ -48,6 +48,10 @@ module Warden
|
|
48
48
|
@request ||= Rack::Auth::Basic::Request.new(env)
|
49
49
|
end
|
50
50
|
|
51
|
+
def auth_scheme
|
52
|
+
'Basic'
|
53
|
+
end
|
54
|
+
|
51
55
|
def realm
|
52
56
|
'private area'
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warden-basic_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Finn GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: warden
|