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 +4 -4
- data/lib/global_session/session/v4.rb +2 -2
- data/lib/global_session/version.rb +1 -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: e56d2f3a7219fc3822d4f1d1d38e7235660bd4f0
|
4
|
+
data.tar.gz: 865c98ce63514205a96180b578a61ed28f3b779a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = /^
|
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'
|
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.
|
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:
|
11
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|