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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 440afcdd777cb808dc93ae4997ef03fb9e2c545e
4
- data.tar.gz: 117be555a793ad89fff3cc257bb92e08687a3900
3
+ metadata.gz: f2158b0fae5b07503ffa7525e762909a225e337a
4
+ data.tar.gz: 6d100b6dc26bb5eee3056e4d5a302ba1fa9919d5
5
5
  SHA512:
6
- metadata.gz: 144c40f50318fca1fb4cc3df225375331e918d7174cb6752f78954b03d3e60e9e8ed9778a3c51d9231f2f4bd5053a798d0862a6fb8290c33662e3d4c6cf421a1
7
- data.tar.gz: c8891b909fdff8c566e421cf0b1d37e23dcda6b1cc35a3d99d389d0d4c2c9a9641f4c33563ac55bb90537d464e1b0cec146740a11e6124cda90bde387a420e15
6
+ metadata.gz: acf583e87e48fd5848d12d27643b91a6bbda7ec9baa59a58f5bfb351ab9037b2b6ed114b2630aa510ca8153e90b8629865c6c399dcb29134b934866c3c9ba653
7
+ data.tar.gz: 523f72e384855185a979ecab31edd0d54abc62b42bf603f52b24528cbf1d651299c0f9a4936107f33effa6e2e6b0696c4dc28cf03c534bafba8f5cbb07c85241
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module BasicAuth
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -27,7 +27,7 @@ module Warden
27
27
  end
28
28
 
29
29
  def authentication_failed
30
- headers 'WWW-Authenticate' => %(Basic realm="#{realm}")
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: warden