bsm-sso-client 0.8.4 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bsm/sso/client.rb +5 -1
- data/lib/bsm/sso/client/failure_app.rb +3 -2
- data/lib/bsm/sso/client/url_helpers.rb +0 -3
- metadata +60 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa376b66c0be29cc68a1f449fd5dea1ab1b1e1b9
|
4
|
+
data.tar.gz: 7f009d7e683eeb5027cca9d416a2ff630e3c44e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a137b74abd28a7db337147b14f6f6b3dd4dae0d91fe129e71eeadcaec56bcd425007d426ecbf880e20e64c920360b8e403dff0a123325a00f4c9be55f369ebc
|
7
|
+
data.tar.gz: 21b1fbc24b54d88c9affeb350b41b4956dbed54f1db52026a5392092d3d5c6c9b30a1e25aa636a1d3689647ba20a22c3546f337e858336d6dc31da96778c8abe
|
data/lib/bsm/sso/client.rb
CHANGED
@@ -52,7 +52,11 @@ module Bsm
|
|
52
52
|
delegate :site=, :site, :to => :"Bsm::Sso::Client::AbstractResource"
|
53
53
|
|
54
54
|
def user_class
|
55
|
-
@@user_class
|
55
|
+
if @@user_class.respond_to?(:constantize)
|
56
|
+
@@user_class.constantize
|
57
|
+
else
|
58
|
+
@@user_class || Bsm::Sso::Client::User
|
59
|
+
end
|
56
60
|
end
|
57
61
|
|
58
62
|
# Default message verifier
|
@@ -1,7 +1,6 @@
|
|
1
1
|
class Bsm::Sso::Client::FailureApp < ActionController::Metal
|
2
2
|
include ActionController::RackDelegation
|
3
3
|
include ActionController::Redirecting
|
4
|
-
include ActionController::Rendering
|
5
4
|
include Bsm::Sso::Client::UrlHelpers
|
6
5
|
|
7
6
|
def self.call(env)
|
@@ -32,7 +31,9 @@ class Bsm::Sso::Client::FailureApp < ActionController::Metal
|
|
32
31
|
end
|
33
32
|
|
34
33
|
def stop!
|
35
|
-
|
34
|
+
self.status = 403
|
35
|
+
self.content_type = Mime::HTML
|
36
|
+
self.response_body = "<html><head></head><body><h1>Access Forbidden</h1></body></html>"
|
36
37
|
end
|
37
38
|
|
38
39
|
end
|
metadata
CHANGED
@@ -1,229 +1,235 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bsm-sso-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.1.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.2.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 4.1.0
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
32
|
+
version: 4.2.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: actionpack
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- -
|
37
|
+
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '0'
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- -
|
44
|
+
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: '0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: activesupport
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ">="
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- -
|
58
|
+
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rails_warden
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - ~>
|
65
|
+
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
67
|
version: 0.5.0
|
62
68
|
type: :runtime
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - ~>
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: 0.5.0
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: excon
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- -
|
79
|
+
- - ">="
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: 0.27.0
|
76
|
-
- - <
|
82
|
+
- - "<"
|
77
83
|
- !ruby/object:Gem::Version
|
78
84
|
version: 1.0.0
|
79
85
|
type: :runtime
|
80
86
|
prerelease: false
|
81
87
|
version_requirements: !ruby/object:Gem::Requirement
|
82
88
|
requirements:
|
83
|
-
- -
|
89
|
+
- - ">="
|
84
90
|
- !ruby/object:Gem::Version
|
85
91
|
version: 0.27.0
|
86
|
-
- - <
|
92
|
+
- - "<"
|
87
93
|
- !ruby/object:Gem::Version
|
88
94
|
version: 1.0.0
|
89
95
|
- !ruby/object:Gem::Dependency
|
90
96
|
name: cancan
|
91
97
|
requirement: !ruby/object:Gem::Requirement
|
92
98
|
requirements:
|
93
|
-
- -
|
99
|
+
- - ">="
|
94
100
|
- !ruby/object:Gem::Version
|
95
101
|
version: '0'
|
96
102
|
type: :development
|
97
103
|
prerelease: false
|
98
104
|
version_requirements: !ruby/object:Gem::Requirement
|
99
105
|
requirements:
|
100
|
-
- -
|
106
|
+
- - ">="
|
101
107
|
- !ruby/object:Gem::Version
|
102
108
|
version: '0'
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
110
|
name: activerecord
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
106
112
|
requirements:
|
107
|
-
- -
|
113
|
+
- - ">="
|
108
114
|
- !ruby/object:Gem::Version
|
109
115
|
version: '0'
|
110
116
|
type: :development
|
111
117
|
prerelease: false
|
112
118
|
version_requirements: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
|
-
- -
|
120
|
+
- - ">="
|
115
121
|
- !ruby/object:Gem::Version
|
116
122
|
version: '0'
|
117
123
|
- !ruby/object:Gem::Dependency
|
118
124
|
name: rake
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
120
126
|
requirements:
|
121
|
-
- -
|
127
|
+
- - ">="
|
122
128
|
- !ruby/object:Gem::Version
|
123
129
|
version: '0'
|
124
130
|
type: :development
|
125
131
|
prerelease: false
|
126
132
|
version_requirements: !ruby/object:Gem::Requirement
|
127
133
|
requirements:
|
128
|
-
- -
|
134
|
+
- - ">="
|
129
135
|
- !ruby/object:Gem::Version
|
130
136
|
version: '0'
|
131
137
|
- !ruby/object:Gem::Dependency
|
132
138
|
name: rack-test
|
133
139
|
requirement: !ruby/object:Gem::Requirement
|
134
140
|
requirements:
|
135
|
-
- -
|
141
|
+
- - ">="
|
136
142
|
- !ruby/object:Gem::Version
|
137
143
|
version: '0'
|
138
144
|
type: :development
|
139
145
|
prerelease: false
|
140
146
|
version_requirements: !ruby/object:Gem::Requirement
|
141
147
|
requirements:
|
142
|
-
- -
|
148
|
+
- - ">="
|
143
149
|
- !ruby/object:Gem::Version
|
144
150
|
version: '0'
|
145
151
|
- !ruby/object:Gem::Dependency
|
146
152
|
name: rspec
|
147
153
|
requirement: !ruby/object:Gem::Requirement
|
148
154
|
requirements:
|
149
|
-
- -
|
155
|
+
- - ">="
|
150
156
|
- !ruby/object:Gem::Version
|
151
157
|
version: '0'
|
152
158
|
type: :development
|
153
159
|
prerelease: false
|
154
160
|
version_requirements: !ruby/object:Gem::Requirement
|
155
161
|
requirements:
|
156
|
-
- -
|
162
|
+
- - ">="
|
157
163
|
- !ruby/object:Gem::Version
|
158
164
|
version: '0'
|
159
165
|
- !ruby/object:Gem::Dependency
|
160
166
|
name: shoulda-matchers
|
161
167
|
requirement: !ruby/object:Gem::Requirement
|
162
168
|
requirements:
|
163
|
-
- -
|
169
|
+
- - ">="
|
164
170
|
- !ruby/object:Gem::Version
|
165
171
|
version: '0'
|
166
172
|
type: :development
|
167
173
|
prerelease: false
|
168
174
|
version_requirements: !ruby/object:Gem::Requirement
|
169
175
|
requirements:
|
170
|
-
- -
|
176
|
+
- - ">="
|
171
177
|
- !ruby/object:Gem::Version
|
172
178
|
version: '0'
|
173
179
|
- !ruby/object:Gem::Dependency
|
174
180
|
name: webmock
|
175
181
|
requirement: !ruby/object:Gem::Requirement
|
176
182
|
requirements:
|
177
|
-
- -
|
183
|
+
- - ">="
|
178
184
|
- !ruby/object:Gem::Version
|
179
185
|
version: '0'
|
180
186
|
type: :development
|
181
187
|
prerelease: false
|
182
188
|
version_requirements: !ruby/object:Gem::Requirement
|
183
189
|
requirements:
|
184
|
-
- -
|
190
|
+
- - ">="
|
185
191
|
- !ruby/object:Gem::Version
|
186
192
|
version: '0'
|
187
193
|
- !ruby/object:Gem::Dependency
|
188
194
|
name: sqlite3
|
189
195
|
requirement: !ruby/object:Gem::Requirement
|
190
196
|
requirements:
|
191
|
-
- -
|
197
|
+
- - ">="
|
192
198
|
- !ruby/object:Gem::Version
|
193
199
|
version: '0'
|
194
200
|
type: :development
|
195
201
|
prerelease: false
|
196
202
|
version_requirements: !ruby/object:Gem::Requirement
|
197
203
|
requirements:
|
198
|
-
- -
|
204
|
+
- - ">="
|
199
205
|
- !ruby/object:Gem::Version
|
200
206
|
version: '0'
|
201
207
|
- !ruby/object:Gem::Dependency
|
202
208
|
name: inherited_resources
|
203
209
|
requirement: !ruby/object:Gem::Requirement
|
204
210
|
requirements:
|
205
|
-
- -
|
211
|
+
- - ">="
|
206
212
|
- !ruby/object:Gem::Version
|
207
213
|
version: '0'
|
208
214
|
type: :development
|
209
215
|
prerelease: false
|
210
216
|
version_requirements: !ruby/object:Gem::Requirement
|
211
217
|
requirements:
|
212
|
-
- -
|
218
|
+
- - ">="
|
213
219
|
- !ruby/object:Gem::Version
|
214
220
|
version: '0'
|
215
221
|
- !ruby/object:Gem::Dependency
|
216
222
|
name: protected_attributes
|
217
223
|
requirement: !ruby/object:Gem::Requirement
|
218
224
|
requirements:
|
219
|
-
- -
|
225
|
+
- - ">="
|
220
226
|
- !ruby/object:Gem::Version
|
221
227
|
version: '0'
|
222
228
|
type: :development
|
223
229
|
prerelease: false
|
224
230
|
version_requirements: !ruby/object:Gem::Requirement
|
225
231
|
requirements:
|
226
|
-
- -
|
232
|
+
- - ">="
|
227
233
|
- !ruby/object:Gem::Version
|
228
234
|
version: '0'
|
229
235
|
description: ''
|
@@ -232,24 +238,24 @@ executables: []
|
|
232
238
|
extensions: []
|
233
239
|
extra_rdoc_files: []
|
234
240
|
files:
|
235
|
-
- lib/bsm
|
236
|
-
- lib/bsm/sso/client
|
241
|
+
- lib/bsm-sso-client.rb
|
242
|
+
- lib/bsm/sso/client.rb
|
237
243
|
- lib/bsm/sso/client/ability.rb
|
238
|
-
- lib/bsm/sso/client/
|
239
|
-
- lib/bsm/sso/client/cached.rb
|
240
|
-
- lib/bsm/sso/client/user_methods.rb
|
241
|
-
- lib/bsm/sso/client/url_helpers.rb
|
242
|
-
- lib/bsm/sso/client/warden_ext.rb
|
244
|
+
- lib/bsm/sso/client/abstract_resource.rb
|
243
245
|
- lib/bsm/sso/client/authorized_controller.rb
|
244
|
-
- lib/bsm/sso/client/
|
246
|
+
- lib/bsm/sso/client/cached.rb
|
247
|
+
- lib/bsm/sso/client/cached/active_record.rb
|
245
248
|
- lib/bsm/sso/client/failure_app.rb
|
246
249
|
- lib/bsm/sso/client/railtie.rb
|
247
|
-
- lib/bsm/sso/client/
|
248
|
-
- lib/bsm/sso/client/strategies/ticket.rb
|
249
|
-
- lib/bsm/sso/client/strategies/http_auth.rb
|
250
|
+
- lib/bsm/sso/client/strategies.rb
|
250
251
|
- lib/bsm/sso/client/strategies/base.rb
|
251
|
-
- lib/bsm/sso/client.rb
|
252
|
-
- lib/bsm
|
252
|
+
- lib/bsm/sso/client/strategies/http_auth.rb
|
253
|
+
- lib/bsm/sso/client/strategies/ticket.rb
|
254
|
+
- lib/bsm/sso/client/test_helpers.rb
|
255
|
+
- lib/bsm/sso/client/url_helpers.rb
|
256
|
+
- lib/bsm/sso/client/user.rb
|
257
|
+
- lib/bsm/sso/client/user_methods.rb
|
258
|
+
- lib/bsm/sso/client/warden_ext.rb
|
253
259
|
homepage: https://github.com/bsm/sso-client
|
254
260
|
licenses: []
|
255
261
|
metadata: {}
|
@@ -259,19 +265,18 @@ require_paths:
|
|
259
265
|
- lib
|
260
266
|
required_ruby_version: !ruby/object:Gem::Requirement
|
261
267
|
requirements:
|
262
|
-
- -
|
268
|
+
- - ">="
|
263
269
|
- !ruby/object:Gem::Version
|
264
|
-
version:
|
270
|
+
version: 2.0.0
|
265
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
272
|
requirements:
|
267
|
-
- -
|
273
|
+
- - ">="
|
268
274
|
- !ruby/object:Gem::Version
|
269
|
-
version: 1.
|
275
|
+
version: 1.8.0
|
270
276
|
requirements: []
|
271
277
|
rubyforge_project:
|
272
|
-
rubygems_version: 2.
|
278
|
+
rubygems_version: 2.2.2
|
273
279
|
signing_key:
|
274
280
|
specification_version: 4
|
275
281
|
summary: BSM's internal SSO client
|
276
282
|
test_files: []
|
277
|
-
has_rdoc:
|