bsm-sso-client 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0c1a3a68deb279c8c0ab07902467feb474f63b4
|
4
|
+
data.tar.gz: d65454a036a2b8a8eb490c46a1f4f5e82eafffba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51490c8cb4da30a9e36e1c4591b86bdf8f44d3018081e6b471b478a9184aa139514973b9863af58df2ed15e4dde0bb1a8d66a710258908a850e9815af680cfc4
|
7
|
+
data.tar.gz: 06e1b7fae948976796355ba5b17de669969d849c36f0926a28950855cf89a58af16c167f7233480470ea7bb8a68b8eb7eb1f07516aaa74b20ac30040062d463f
|
@@ -29,7 +29,6 @@ module Bsm::Sso::Client::Cached::ActiveRecord
|
|
29
29
|
def sso_cache(resource, action = nil)
|
30
30
|
record = where(id: resource.id).first_or_initialize
|
31
31
|
attrs = [resource.attributes.slice(*record.attribute_names)]
|
32
|
-
attrs << {without_protection: true} if defined?(ProtectedAttributes)
|
33
32
|
record.assign_attributes(*attrs)
|
34
33
|
record.changed? ? record.save! : record.touch
|
35
34
|
record
|
@@ -1,9 +1,8 @@
|
|
1
1
|
module Bsm::Sso::Client::UrlHelpers
|
2
2
|
|
3
3
|
def service_url(path = request.fullpath)
|
4
|
-
part = Regexp.escape params.
|
4
|
+
part = Regexp.escape({ ticket: params.fetch(:ticket, '') }.to_query)
|
5
5
|
request.base_url + path.sub(/#{part}\&?/, '').chomp("&").chomp("?")
|
6
6
|
end
|
7
7
|
|
8
8
|
end
|
9
|
-
|
data/lib/bsm/sso/client/user.rb
CHANGED
@@ -42,10 +42,9 @@ class Bsm::Sso::Client::User < Bsm::Sso::Client::AbstractResource
|
|
42
42
|
end
|
43
43
|
|
44
44
|
url = "#{conn[:scheme]}://#{conn[:host]}#{port}/#{method_name.to_s}"
|
45
|
-
url << "?#{params.to_query}" unless params.empty?
|
45
|
+
url << "?#{params.to_h.to_query}" unless params.empty?
|
46
46
|
url
|
47
47
|
end
|
48
48
|
|
49
49
|
end
|
50
50
|
end
|
51
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.11.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: 2017-
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 6.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 5.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 6.0.0
|
@@ -267,15 +267,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
267
267
|
requirements:
|
268
268
|
- - ">="
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: 2.
|
270
|
+
version: 2.2.2
|
271
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
272
|
requirements:
|
273
273
|
- - ">="
|
274
274
|
- !ruby/object:Gem::Version
|
275
|
-
version:
|
275
|
+
version: '0'
|
276
276
|
requirements: []
|
277
277
|
rubyforge_project:
|
278
|
-
rubygems_version: 2.
|
278
|
+
rubygems_version: 2.6.8
|
279
279
|
signing_key:
|
280
280
|
specification_version: 4
|
281
281
|
summary: BSM's internal SSO client
|