global_session 3.2.5 → 3.2.6
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/rails.rb +9 -3
- 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: 57c8340209a64a81da8fc74cf16013d796838c71
|
4
|
+
data.tar.gz: 2384406755bf65f8cdc1fbdf697e3618de32c605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f11ff4132f86bba1adb8b6b11987cbc68c01f616c629c025d95e51cbbf1ac36c7118e583541c6a945ff7e15a16b58845fbc614f4dbb654cd62c7091e3fd24364
|
7
|
+
data.tar.gz: d258b70f16fbb381082cc8f2bbb11e4a2aef0ba562304b002606d22be75e70e8e6a97f736b63b0bd8777748efb3d01d8e3003721d45326dfaaddb9230fe7cebc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.6
|
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.6 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.6"
|
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-05-19"
|
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 = [
|
data/lib/global_session/rails.rb
CHANGED
@@ -69,9 +69,15 @@ module GlobalSession
|
|
69
69
|
"Specified directory class '#{dir_name}' does not inherit from GlobalSession::Directory"
|
70
70
|
end
|
71
71
|
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
if self.configuration['keystore'].blank? || self.configuration['keystore']['public'].blank?
|
73
|
+
# Support legacy behavior (config/authorities dir always contains pub keys)
|
74
|
+
authorities_dir = File.join(::Rails.root, 'config', 'authorities')
|
75
|
+
self.directory = dir_klass.new(self.configuration, authorities_dir)
|
76
|
+
self.keystore = self.directory.keystore
|
77
|
+
else
|
78
|
+
# Prefer modern behavior (configuration tells us where to find pub keys)
|
79
|
+
self.directory = dir_klass.new(self.configuration)
|
80
|
+
end
|
75
81
|
|
76
82
|
# Add our middleware to the stack.
|
77
83
|
rails_config.middleware.insert_before(ActionController::Base.session_store, ::Rack::Cookies)
|
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.6
|
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-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|