hanami-authentication 0.3.1 → 0.3.2

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: e0c885b1d8fe00c9bcd2593129f493ec72e52de8
4
- data.tar.gz: 382c3e490a408e2786bd20aad21d81e57fd7cd0a
3
+ metadata.gz: 0ddd06d2941f0e8a3253c7d466a9ac97f7d18349
4
+ data.tar.gz: d8cbdcb677306b412b29f2a22d135cb94824ae99
5
5
  SHA512:
6
- metadata.gz: 8d896b994203fb85fe54cf925b89df3e6558d82260291b1cb30f6fc5169c5d8e38c11324578d88ac264320c1db0e1872c51adfd16b64d0928d888ef36a393194
7
- data.tar.gz: b043c4754c43dce9a476051822da58dc915493f4a2fcf09a93b114c3c56c47f0126ec577510ed195dca39e5fa6eb187a0265ecf82d8ecfe6a971df49ceb78ef6
6
+ metadata.gz: dd1a434b91164583ed619693009abac7e027fd4416d05506f0606890177cd2a94ac601206f9414c8148e23591ce316d6bf3fc9afb6ce5267fc156d5e82650013
7
+ data.tar.gz: 924700e5ccda47a54a92b11a06b65a2589592ab3ffcf7cffe14f19c8e57ad7bf92bacf77d3d3f6456e547d5a5cba48d82c88aa577f44190787d4317458d1649a
@@ -29,7 +29,7 @@ module Hanami
29
29
  end
30
30
 
31
31
  def token_from_header
32
- header = request.get_header('Authorization')
32
+ header = request.get_header('HTTP_AUTHORIZATION')
33
33
  return unless header
34
34
  matched = header.match(/Bearer (.+)$/)
35
35
  matched && matched[1]
@@ -1,5 +1,5 @@
1
1
  module Hanami
2
2
  module Authentication
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LegalForce Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt