cf-uaa-lib 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uaa/scim.rb +2 -1
- data/lib/uaa/version.rb +1 -1
- data/spec/scim_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b3ea05370cef75d64d56289aa9982940163b3f1
|
4
|
+
data.tar.gz: 8d1dcc1c49e158cd81dba4d7fee1945ddad2d225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d024dff0e8e69b58496114f123ae34b6b2e98c5e7b87271649845fd53882b8c5a60d08594606f346f14138e1210d3d728aeef86f326ba8dd4f33863ad58de63
|
7
|
+
data.tar.gz: 0a82cd85f27a2546052c914d9e4c70748b55600b48a1880de840a5a483ce7a2b57c03b52c65db8a4a950c558965441c65dfaa3e77ced383c68a31d578d77d2aa
|
data/lib/uaa/scim.rb
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
#++
|
13
13
|
|
14
14
|
require 'uaa/http'
|
15
|
+
require 'uri'
|
15
16
|
|
16
17
|
module CF::UAA
|
17
18
|
|
@@ -318,7 +319,7 @@ class Scim
|
|
318
319
|
end
|
319
320
|
|
320
321
|
def unmap_group(group_id, external_group)
|
321
|
-
http_delete(@target, "#{type_info(:group_mapping, :path)}/id/#{group_id}/#{external_group}",
|
322
|
+
http_delete(@target, "#{type_info(:group_mapping, :path)}/id/#{group_id}/#{URI.encode(external_group)}",
|
322
323
|
@auth_header)
|
323
324
|
end
|
324
325
|
|
data/lib/uaa/version.rb
CHANGED
data/spec/scim_spec.rb
CHANGED
@@ -156,13 +156,13 @@ describe Scim do
|
|
156
156
|
|
157
157
|
it "unmaps a uaa group from an external group" do
|
158
158
|
subject.set_request_handler do |url, method, body, headers|
|
159
|
-
url.should == "#{@target}/Groups/External/id/uaa-group-id/external
|
159
|
+
url.should == "#{@target}/Groups/External/id/uaa-group-id/external%20group%20name"
|
160
160
|
method.should == :delete
|
161
161
|
check_headers(headers, nil, nil)
|
162
162
|
|
163
163
|
[200, '{"displayName":"uaa-scope-name", "groupId": "uaa-group-id", "externalGroup": "external-group-name"}', {"content-type" => "application/json"}]
|
164
164
|
end
|
165
|
-
subject.unmap_group("uaa-group-id", "external
|
165
|
+
subject.unmap_group("uaa-group-id", "external group name")
|
166
166
|
end
|
167
167
|
|
168
168
|
describe "#list_group_mappings" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-uaa-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Syer
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-
|
15
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: multi_json
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project: cf-uaa-lib
|
190
|
-
rubygems_version: 2.2.
|
190
|
+
rubygems_version: 2.2.3
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: Client library for CloudFoundry UAA
|