global_session 3.3.0 → 3.3.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: bdc242048b36de58af17de56b0b99eb35749402b
4
- data.tar.gz: 21c79fa5ca975c6fd8dddaa623c00f24f385276f
3
+ metadata.gz: e56d2f3a7219fc3822d4f1d1d38e7235660bd4f0
4
+ data.tar.gz: 865c98ce63514205a96180b578a61ed28f3b779a
5
5
  SHA512:
6
- metadata.gz: b2030dc06623067a3ebbbdbdfda30d465e2d7f84c9cef19fbc9bff55f7ea11e65e656cd10854b0abf0e0f5ee2e6273a54076d99ff0fd85aaaac65fbd552e4bbd
7
- data.tar.gz: b2d3249a309714a84b47699adb4bc7531c3a56aaa5a76ea3b2df81a4d2ee778ab75e439e2870089223c212d6f42254eb5874b9debcb92f4030272a987a7c05b1
6
+ metadata.gz: 839158a96a18c9eb86ee08a91cb1b798edc9a2eada486ce7475ce7b6dfe280cfd45190203db88bc280745b37cf7a4571ae0c981c45ceec1a4c187c6549a255e5
7
+ data.tar.gz: 524d20de67cc1838443cbf2eff4e690c0375e34e162cd429420869ccfc3000b679f3a7b1ec3263a0be341b7317fc98c10f6bf875bc985bf7c9d6c6fbeffdfe14
@@ -12,14 +12,14 @@ module GlobalSession::Session
12
12
  NOT_BEFORE = 'nbf'.freeze
13
13
 
14
14
  # Pattern that matches strings that are probably a V4 session cookie.
15
- HEADER = /^eyJ0eXAiOiJKV1QiL/
15
+ HEADER = /^eyJ/
16
16
 
17
17
  def self.decode_cookie(cookie)
18
18
  header, payload, sig, insec = cookie.split('.')
19
19
  header, payload, insec = [header, payload, insec].
20
20
  map { |c| c && RightSupport::Data::Base64URL.decode(c) }.
21
21
  map { |j| j && GlobalSession::Encoding::JSON.load(j) }
22
- sig = RightSupport::Data::Base64URL.decode(sig)
22
+ sig = sig && RightSupport::Data::Base64URL.decode(sig)
23
23
  insec ||= {}
24
24
 
25
25
  unless Hash === header && header['typ'] == 'JWT'
@@ -1,3 +1,3 @@
1
1
  module GlobalSession
2
- VERSION = '3.3.0'
2
+ VERSION = '3.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Spataro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json