cf-uaa-lib 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/uaa/scim.rb +8 -0
- data/lib/uaa/version.rb +1 -1
- data/spec/scim_spec.rb +12 -0
- 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: 70669ed7b90ce06174a22dce47dd75c0cdcf16ce
|
4
|
+
data.tar.gz: 3357008001e3a78f4bc26bae6eaf14737e80b0ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e3635e968dd3c32f891433e8d434baf5522898c38e1b9997c08cfff4ff6c85780f4e4475414020d5511da546658d59f0dab34e15ce7d1a95a5a50d3f57a63f
|
7
|
+
data.tar.gz: e20837e3fba2002a6ab6fcfbbbf86821352b12b4e8578002472115bea57ea1149674916c0e778f6a8cb70904452a3bf69f9af29c00ef82ee6fdb9991f948407b
|
data/lib/uaa/scim.rb
CHANGED
@@ -224,6 +224,14 @@ class Scim
|
|
224
224
|
info
|
225
225
|
end
|
226
226
|
|
227
|
+
# Get meta information about client
|
228
|
+
# @param client_id
|
229
|
+
# @return (client meta)
|
230
|
+
def get_client_meta(client_id)
|
231
|
+
path = type_info(:client, :path)
|
232
|
+
json_get(@target, "#{path}/#{URI.encode(client_id)}/meta", @key_style, headers)
|
233
|
+
end
|
234
|
+
|
227
235
|
# Collects all pages of entries from a query
|
228
236
|
# @param type (see #query)
|
229
237
|
# @param [Hash] query may contain the following keys:
|
data/lib/uaa/version.rb
CHANGED
data/spec/scim_spec.rb
CHANGED
@@ -58,6 +58,18 @@ describe Scim do
|
|
58
58
|
result['id'].should == 'id12345'
|
59
59
|
end
|
60
60
|
|
61
|
+
it 'gets client meta' do
|
62
|
+
subject.set_request_handler do |url, method, body, headers|
|
63
|
+
url.should == "#{@target}/oauth/clients/id12345/meta"
|
64
|
+
method.should == :get
|
65
|
+
check_headers(headers, nil, :json, nil)
|
66
|
+
[200, '{"id":"id12345", "created_by": "Marissa"}', {'content-type' => 'application/json'}]
|
67
|
+
end
|
68
|
+
result = subject.get_client_meta('id12345')
|
69
|
+
result['id'].should == 'id12345'
|
70
|
+
result['created_by'].should == 'Marissa'
|
71
|
+
end
|
72
|
+
|
61
73
|
it 'replaces an object' do
|
62
74
|
obj = {:hair => 'black', :shoe_size => 'medium', :eye_color => ['hazel', 'brown'],
|
63
75
|
:name => 'fredrick', :meta => {:version => 'v567'}, :id => 'id12345'}
|
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.
|
4
|
+
version: 3.8.0
|
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:
|
15
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: multi_json
|