global_session 3.0.5 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +8 -0
- data/CHANGELOG.rdoc +23 -6
- data/LICENSE +1 -1
- data/README.rdoc +84 -38
- data/Rakefile +19 -17
- data/VERSION +1 -1
- data/global_session.gemspec +18 -34
- data/lib/global_session.rb +1 -0
- data/lib/global_session/configuration.rb +59 -12
- data/lib/global_session/directory.rb +71 -43
- data/lib/global_session/keystore.rb +139 -0
- data/lib/global_session/rack.rb +98 -76
- data/lib/global_session/rails.rb +4 -0
- metadata +121 -236
data/lib/global_session/rails.rb
CHANGED
@@ -47,6 +47,9 @@ module GlobalSession
|
|
47
47
|
|
48
48
|
# Single Directory object used by entire Rails app
|
49
49
|
attr_accessor :directory
|
50
|
+
|
51
|
+
# Single Keystore object used by entire Rails app
|
52
|
+
attr_accessor :keystore
|
50
53
|
end
|
51
54
|
|
52
55
|
def self.activate(rails_config, &block)
|
@@ -68,6 +71,7 @@ module GlobalSession
|
|
68
71
|
|
69
72
|
authorities_dir = File.join(::Rails.root, 'config', 'authorities')
|
70
73
|
self.directory = dir_klass.new(self.configuration, authorities_dir)
|
74
|
+
self.keystore = self.directory.keystore
|
71
75
|
|
72
76
|
# Add our middleware to the stack.
|
73
77
|
rails_config.middleware.insert_before(ActionController::Base.session_store, ::Rack::Cookies)
|
metadata
CHANGED
@@ -1,251 +1,145 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_session
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
- 5
|
10
|
-
version: 3.0.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.1.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Tony Spataro
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: json
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.4'
|
23
20
|
type: :runtime
|
24
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 4
|
33
|
-
version: "1.4"
|
34
|
-
requirement: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
21
|
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
37
28
|
name: rack-contrib
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
38
34
|
type: :runtime
|
39
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
|
-
requirements:
|
42
|
-
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 15
|
45
|
-
segments:
|
46
|
-
- 1
|
47
|
-
- 0
|
48
|
-
version: "1.0"
|
49
|
-
requirement: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
35
|
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
52
42
|
name: right_support
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
hash: 7
|
60
|
-
segments:
|
61
|
-
- 3
|
62
|
-
- 0
|
63
|
-
version: "3.0"
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.0'
|
64
48
|
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
hash: 43
|
67
|
-
segments:
|
68
|
-
- 2
|
69
|
-
- 8
|
70
|
-
- 2
|
49
|
+
- !ruby/object:Gem::Version
|
71
50
|
version: 2.8.2
|
72
|
-
|
73
|
-
- !ruby/object:Gem::Dependency
|
51
|
+
type: :runtime
|
74
52
|
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "<"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '4.0'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.8.2
|
61
|
+
- !ruby/object:Gem::Dependency
|
75
62
|
name: simple_uuid
|
76
|
-
|
77
|
-
|
78
|
-
none: false
|
79
|
-
requirements:
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
80
65
|
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
hash: 23
|
83
|
-
segments:
|
84
|
-
- 0
|
85
|
-
- 2
|
86
|
-
- 0
|
66
|
+
- !ruby/object:Gem::Version
|
87
67
|
version: 0.2.0
|
88
|
-
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
prerelease: false
|
91
|
-
name: cucumber
|
92
|
-
type: :development
|
93
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
|
-
requirements:
|
96
|
-
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
hash: 15
|
99
|
-
segments:
|
100
|
-
- 1
|
101
|
-
- 0
|
102
|
-
version: "1.0"
|
103
|
-
requirement: *id005
|
104
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
type: :runtime
|
105
69
|
prerelease: false
|
106
|
-
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.2.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: ruby-debug
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0.10'
|
107
82
|
type: :development
|
108
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
|
-
requirements:
|
111
|
-
- - ~>
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
hash: 5
|
114
|
-
segments:
|
115
|
-
- 1
|
116
|
-
- 5
|
117
|
-
version: "1.5"
|
118
|
-
requirement: *id006
|
119
|
-
- !ruby/object:Gem::Dependency
|
120
83
|
prerelease: false
|
121
|
-
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0.10'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: pry
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.10'
|
122
96
|
type: :development
|
123
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
|
-
requirements:
|
126
|
-
- - ~>
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
hash: 27
|
129
|
-
segments:
|
130
|
-
- 0
|
131
|
-
- 8
|
132
|
-
version: "0.8"
|
133
|
-
requirement: *id007
|
134
|
-
- !ruby/object:Gem::Dependency
|
135
97
|
prerelease: false
|
136
|
-
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.10'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: pry-byebug
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '2.0'
|
137
110
|
type: :development
|
138
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
|
-
requirements:
|
141
|
-
- - ">="
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
hash: 3
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
version: "0"
|
147
|
-
requirement: *id008
|
148
|
-
- !ruby/object:Gem::Dependency
|
149
111
|
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '2.0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
150
118
|
name: jeweler
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
- - ~>
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
hash: 49
|
158
|
-
segments:
|
159
|
-
- 1
|
160
|
-
- 8
|
161
|
-
- 3
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
162
123
|
version: 1.8.3
|
163
|
-
requirement: *id009
|
164
|
-
- !ruby/object:Gem::Dependency
|
165
|
-
prerelease: false
|
166
|
-
name: msgpack
|
167
|
-
type: :development
|
168
|
-
version_requirements: &id010 !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ~>
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
hash: 3
|
174
|
-
segments:
|
175
|
-
- 0
|
176
|
-
- 4
|
177
|
-
version: "0.4"
|
178
|
-
requirement: *id010
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
prerelease: false
|
181
|
-
name: rake
|
182
|
-
type: :development
|
183
|
-
version_requirements: &id011 !ruby/object:Gem::Requirement
|
184
|
-
none: false
|
185
|
-
requirements:
|
186
|
-
- - ~>
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
hash: 27
|
189
|
-
segments:
|
190
|
-
- 0
|
191
|
-
- 8
|
192
|
-
version: "0.8"
|
193
|
-
requirement: *id011
|
194
|
-
- !ruby/object:Gem::Dependency
|
195
|
-
prerelease: false
|
196
|
-
name: right_develop
|
197
|
-
type: :development
|
198
|
-
version_requirements: &id012 !ruby/object:Gem::Requirement
|
199
|
-
none: false
|
200
|
-
requirements:
|
201
|
-
- - ~>
|
202
|
-
- !ruby/object:Gem::Version
|
203
|
-
hash: 11
|
204
|
-
segments:
|
205
|
-
- 1
|
206
|
-
- 2
|
207
|
-
version: "1.2"
|
208
|
-
requirement: *id012
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
prerelease: false
|
211
|
-
name: rspec
|
212
124
|
type: :development
|
213
|
-
version_requirements: &id013 !ruby/object:Gem::Requirement
|
214
|
-
none: false
|
215
|
-
requirements:
|
216
|
-
- - ~>
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
hash: 9
|
219
|
-
segments:
|
220
|
-
- 1
|
221
|
-
- 3
|
222
|
-
version: "1.3"
|
223
|
-
requirement: *id013
|
224
|
-
- !ruby/object:Gem::Dependency
|
225
125
|
prerelease: false
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
- 0
|
236
|
-
- 10
|
237
|
-
version: "0.10"
|
238
|
-
requirement: *id014
|
239
|
-
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.
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 1.8.3
|
131
|
+
description: This Rack middleware allows several web apps in an authentication domain
|
132
|
+
to share session state, facilitating single sign-on in a distributed web app. It
|
133
|
+
only provides session sharing and does not concern itself with authentication or
|
134
|
+
replication of the user database.
|
240
135
|
email: support@rightscale.com
|
241
136
|
executables: []
|
242
|
-
|
243
137
|
extensions: []
|
244
|
-
|
245
|
-
extra_rdoc_files:
|
138
|
+
extra_rdoc_files:
|
246
139
|
- LICENSE
|
247
140
|
- README.rdoc
|
248
|
-
files:
|
141
|
+
files:
|
142
|
+
- ".travis.yml"
|
249
143
|
- CHANGELOG.rdoc
|
250
144
|
- LICENSE
|
251
145
|
- README.rdoc
|
@@ -257,6 +151,7 @@ files:
|
|
257
151
|
- lib/global_session/configuration.rb
|
258
152
|
- lib/global_session/directory.rb
|
259
153
|
- lib/global_session/encoding.rb
|
154
|
+
- lib/global_session/keystore.rb
|
260
155
|
- lib/global_session/rack.rb
|
261
156
|
- lib/global_session/rails.rb
|
262
157
|
- lib/global_session/rails/action_controller_class_methods.rb
|
@@ -273,37 +168,27 @@ files:
|
|
273
168
|
- rails_generators/global_session_authority/USAGE
|
274
169
|
- rails_generators/global_session_authority/global_session_authority_generator.rb
|
275
170
|
homepage: https://github.com/rightscale/global_session
|
276
|
-
licenses:
|
171
|
+
licenses:
|
277
172
|
- MIT
|
173
|
+
metadata: {}
|
278
174
|
post_install_message:
|
279
175
|
rdoc_options: []
|
280
|
-
|
281
|
-
require_paths:
|
176
|
+
require_paths:
|
282
177
|
- lib
|
283
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
284
|
-
|
285
|
-
requirements:
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
286
180
|
- - ">="
|
287
|
-
- !ruby/object:Gem::Version
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
version: "0"
|
292
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
|
-
none: false
|
294
|
-
requirements:
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
295
185
|
- - ">="
|
296
|
-
- !ruby/object:Gem::Version
|
297
|
-
|
298
|
-
segments:
|
299
|
-
- 0
|
300
|
-
version: "0"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
301
188
|
requirements: []
|
302
|
-
|
303
189
|
rubyforge_project:
|
304
|
-
rubygems_version:
|
190
|
+
rubygems_version: 2.2.2
|
305
191
|
signing_key:
|
306
|
-
specification_version:
|
192
|
+
specification_version: 4
|
307
193
|
summary: Secure single-domain session sharing plugin for Rack and Rails.
|
308
194
|
test_files: []
|
309
|
-
|