global_session 3.2.7 → 3.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/global_session.gemspec +3 -3
- data/lib/global_session/session/v2.rb +3 -0
- data/lib/global_session/session/v3.rb +5 -2
- 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: b38238ab7a15ce16b77e388316e79391daeb8c15
|
4
|
+
data.tar.gz: c39282f982f39acbcebb816269f6755035db4edf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e47be4e108ee68cf9a6d826a6138796a1409c85b7bac2c53847ba12276a44aa0e8f47ab3ce80d6ed6092c19616d76d4efc22d406e874dd406e281fe8f3a118
|
7
|
+
data.tar.gz: cfe7e8d87eb1008de76ae93cbf970e4c641f321c04e8fed0dea419244116fbf93ed4b6773149d8177c6cc084f149b8266eacfdc31e3cc5717b94ea9aea7434ea
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.8
|
data/global_session.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: global_session 3.2.
|
5
|
+
# stub: global_session 3.2.8 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "global_session"
|
9
|
-
s.version = "3.2.
|
9
|
+
s.version = "3.2.8"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Tony Spataro"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-08-20"
|
15
15
|
s.description = "This Rack middleware allows several web apps in an authentication domain to share session state, facilitating single sign-on in a distributed web app. It only provides session sharing and does not concern itself with authentication or replication of the user database."
|
16
16
|
s.email = "support@rightscale.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -22,6 +22,9 @@
|
|
22
22
|
# Standard library dependencies
|
23
23
|
require 'set'
|
24
24
|
|
25
|
+
# Cryptographical Hash
|
26
|
+
require 'right_support/crypto'
|
27
|
+
|
25
28
|
module GlobalSession::Session
|
26
29
|
# Global session V2 uses msgpack serialization and no compression. Its msgpack structure is an
|
27
30
|
# Array with the following format:
|
@@ -22,6 +22,9 @@
|
|
22
22
|
# Standard library dependencies
|
23
23
|
require 'set'
|
24
24
|
|
25
|
+
# Cryptographical Hash
|
26
|
+
require 'right_support/crypto'
|
27
|
+
|
25
28
|
module GlobalSession::Session
|
26
29
|
# Global session V3 uses JSON serialization, no compression, and a detached signature that is
|
27
30
|
# excluded from the JSON structure for efficiency reasons.
|
@@ -123,14 +126,14 @@ module GlobalSession::Session
|
|
123
126
|
@dirty_secure = true if @signed.keys.include? key
|
124
127
|
value = @signed.delete(key)
|
125
128
|
elsif @schema_insecure.include?(key)
|
126
|
-
|
129
|
+
|
127
130
|
# Only mark dirty if the key actually exists
|
128
131
|
@dirty_insecure = true if @insecure.keys.include? key
|
129
132
|
value = @insecure.delete(key)
|
130
133
|
else
|
131
134
|
raise ArgumentError, "Attribute '#{key}' is not specified in global session configuration"
|
132
135
|
end
|
133
|
-
|
136
|
+
|
134
137
|
return value
|
135
138
|
end
|
136
139
|
|
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.2.
|
4
|
+
version: 3.2.8
|
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-
|
11
|
+
date: 2016-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|